appstream-glib icon indicating copy to clipboard operation
appstream-glib copied to clipboard

Unknown tag 'a'

Open Doomsdayrs opened this issue 3 years ago • 2 comments
trafficstars

Trying to add any form of link into an appdata.xml via causes the parse to fail.

Examples:

<a> in <p>

Error loading AppData file: failed to parse /app/share/appdata/com.lunarclient.Launcher.appdata.xml: Error on line 288 char 173: <p> already set 'You further acknowledge and agree that by using Minecraft or setting up a Minecraft account, you may be subject to an agreement(s) with the Microsoft Corporation and/or Mojang AB. For your reference, Mojang’s terms and conditions are available' and tried to replace with ' and the Microsoft services agreement is available '

standalone

Error loading AppData file: failed to parse /app/share/appdata/com.lunarclient.Launcher.appdata.xml: Unknown tag 'a'

Doomsdayrs avatar Jan 20 '22 00:01 Doomsdayrs

Links are not allowed there, so this is expected behavior. You can set links via an URL tag if it fits in any of the existing catgories: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-url To add any kind of agreement that a user has to accept, the <agreement/> tag can be used: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-agreement

ximion avatar Jan 20 '22 01:01 ximion

.. Why would links not be allowed in licenses etc?

Doomsdayrs avatar Jan 20 '22 01:01 Doomsdayrs