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

Unknown tag 'a' #425

Open
Doomsdayrs opened this issue Jan 20, 2022 · 2 comments
Open

Unknown tag 'a' #425

Doomsdayrs opened this issue Jan 20, 2022 · 2 comments

Comments

@Doomsdayrs
Copy link

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'
@ximion
Copy link
Collaborator

ximion commented Jan 20, 2022

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

@Doomsdayrs
Copy link
Author

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

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

2 participants