Skip to content

Should rewind CDATA #290

Description

@mcrha

Coming from https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2942

The fonts in Fedora generate AppStream data where summary and description contain CDATA data, like:

  <summary><![CDATA[ADF Accanthis Nᵒ2, a modernized garaldic serif, “Horley old style” alternative]]></summary>
  <description>
    <p><![CDATA[A Latin font family published by Hirwen Harendal’s Arkandis Digital Foundry, Accanthis was inspired from
the “Cloister Oldstyle” font family found in the “American Specimen Book of Typefaces Suplement”. Its medium contrast
is sufficient to be reader-friendly and deliver an elegant and refined experience.]]></p><p><![CDATA[Accanthis is a
modernized garaldic font family and is well suited to book typesetting and refined presentations.]]></p><p><![CDATA[This
variant is closer to the “Horley old style” font family than the original version.]]></p>
  </description>

which the libxmlb does not account for and turns each into (null) when read. The appstream-data package might go through other pipes, I do not know, it's just when I pass such AppStream data directly to gnome-software, which uses libxmlb to work with it, it does not read the CDATA content and behaves like the element is empty. I did not find any XbNode API to get to the CDATA data on the client side, thus I guess it's up to the libxmlb to account for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions