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
AppData Description gets rendered out of order #116
Comments
|
Looks like valid markup to me. I assume appstream-glib does the right thing? |
|
I guess this is because of the "release descriptions can start with an enumeration" patch that was recently applied to your packaging. I need to rewrite that particular code anyway, so consider this fixed for the next release (which is where the patch that broke it is from anyway ^^). |
|
Okay, I tried multiple things now, I even added a new testcase dedicated to this bug, but I could not reproduce this. The XML is always parsed correctly in any form, the YAML output matches the expectations as well, and I see no other way this could possibly fail. The only possibility remaining is that the appstream-generator interferes (unlikely, it doesn't touch the description when the metainfo file defines one) or that the patch you applied to AppStream in Elementary to fix the "description can't start with enumeration" bug somehow doesn't work as expected on the older AppStream version. |
|
It's also not a bug in the built-in simple markup rendering function. Can you maybe update both appstream-generator and AppStream on your server to the newest version, and then tell it to re-scan the affected package? |
|
I'm closing this, because I can still not reproduce it. Please reopen this report, in case the bug is still happening. |
|
I just had this happen with an app in elementary OS as well. Not sure where exactly the issue is, but I was pointed here. My AppStream description is: On my machine, however, dumping the appstream data gives me <description>
<p xml:lang="en_US">Analyze any display. Input a few simple details and figure out the aspect ratio, DPI, and other details of a particular display. Great for deciding which laptop or external monitor to purchase, and if it would be considered HiDPI.</p>
<p xml:lang="en_US">Handy features:</p>
<p xml:lang="en_US">Based on the expertise of Cassidy James Blaede and the actual logic System76 uses to determine screen size and resolution combinations.</p>
<p xml:lang="en_US">Tells you if a display‘s density is:</p>
<p xml:lang="en_US">Special thanks:</p>
<ul>
<li xml:lang="en_US">Find out if a display is a good choice based on its size and resolution</li>
<li xml:lang="en_US">Get advice about different densities</li>
<li xml:lang="en_US">Differentiates between laptops and desktop displays</li>
<li xml:lang="en_US">Stupid simple: all in a cute li'l window</li>
</ul>
<ul>
<li xml:lang="en_US">Very Low DPI,</li>
<li xml:lang="en_US">Fairly Low DPI,</li>
<li xml:lang="en_US">Ideal for LoDPI,</li>
<li xml:lang="en_US">Potentially Problematic,</li>
<li xml:lang="en_US">Ideal for HiDPI,</li>
<li xml:lang="en_US">Fairly High for HiDPI, or</li>
<li xml:lang="en_US">Too High DPI</li>
</ul>
<ul>
<li xml:lang="en_US">Micah Ilbery for the shiny icons!</li>
<li xml:lang="en_US">Daniel Foré for his apps to use as code examples</li>
<li xml:lang="en_US">David Jordan for helping determine DPI ranges</li>
</ul>
</description>The XML is validated with |
|
Which version of AppStream do you have? ( |
|
I'm not sure what the version on the server is, but it turns out this was an issue with a related parsing process in Houston that has been fixed. Sorry for the bother! |
from elementary/appcenter#333
The description of my app has a paragraph block followed by an unordered list, followed by another paragraph. The unordered list somehow gets rendered below the two paragraphs in AppCenter.
My description looks like this:
<description> <p> Agenda is a simple, slick, speedy and no-nonsense task manager. Use it to keep track of the tasks that matter most. </p> <ul> <li>Blazingly fast and light</li> <li>Remembers your list until you clear completed tasks</li> <li>Autocompletion for previously added tasks</li> <li>Quit with the Esc key</li> </ul> <p> I dare you to find an easier, faster, more beautiful task manager for elementary OS. </p> </description>AppCenter looks like this:
The text was updated successfully, but these errors were encountered: