Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear meaning of "Not enough <p> content before <ul>" #57

Closed
akurtakov opened this issue Aug 6, 2015 · 4 comments
Closed

Unclear meaning of "Not enough <p> content before <ul>" #57

akurtakov opened this issue Aug 6, 2015 · 4 comments

Comments

@akurtakov
Copy link

appstream-util validate was showing this after adding second/third p section and sentence. The real error was that there were not enough characters. It would help a lot in fixing such issues if it states clearly that there are not enough characters preferably even with the number of missing characters.

@ignatenkobrain
Copy link
Collaborator

validate-relax?

-Igor Gnatenko

@hughsie
Copy link
Owner

hughsie commented Aug 6, 2015

Sure, makes sense. Have you got any other suggestions? The string is in https://github.com/hughsie/appstream-glib/blob/master/libappstream-glib/as-app-validate.c if you'd like to have a go at a patch.

@kalev
Copy link
Collaborator

kalev commented Aug 6, 2015

The commit above would change the error from:

/usr/share/appdata/eclipse.appdata.xml: FAILED:
• url-not-found         : <screenshot> url not found [http://kdaniel.fedorapeople.org/eclipsescreenshots/IDE.png]
• url-not-found         : <screenshot> url not found [http://kdaniel.fedorapeople.org/eclipsescreenshots/HELP.png]
• style-invalid         : Not enough <p> content before <ul>
Validation of files failed

to:

/usr/share/appdata/eclipse.appdata.xml: FAILED:
• url-not-found         : <screenshot> url not found [http://kdaniel.fedorapeople.org/eclipsescreenshots/IDE.png]
• url-not-found         : <screenshot> url not found [http://kdaniel.fedorapeople.org/eclipsescreenshots/HELP.png]
• style-invalid         : Content before <ul> is too short [210], at least 300 characters required
• style-invalid         : Content before <ul> is too short [63], at least 300 characters required
Validation of files failed

Is it any better?

@akurtakov
Copy link
Author

Way way easier to find issue if this is the output.

@kalev kalev closed this as completed in #58 Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants