diff options
author | Volker Krause <vkrause@kde.org> | 2021-05-12 16:56:40 +0200 |
---|---|---|
committer | Volker Krause <vkrause@kde.org> | 2021-05-17 15:55:48 +0000 |
commit | ccd1db5ec167388c4b7dac8fa7cf099fc56f02a1 (patch) | |
tree | 7901b9fa969c0b3a722f052cd368ba99b901ab7d | |
parent | 001f901ee297bb5346729a02e8920b7528e20717 (diff) | |
download | extra-cmake-modules-ccd1db5ec167388c4b7dac8fa7cf099fc56f02a1.tar.gz extra-cmake-modules-ccd1db5ec167388c4b7dac8fa7cf099fc56f02a1.tar.bz2 |
Don't pass through list rich text elements, Google Play can't handle those
Instead, restore their plain text fallback output that we used to have
already prior to enabling rich text support.
-rwxr-xr-x | toolchain/generate-fastlane-metadata.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/toolchain/generate-fastlane-metadata.py b/toolchain/generate-fastlane-metadata.py index e917484e..034a8699 100755 --- a/toolchain/generate-fastlane-metadata.py +++ b/toolchain/generate-fastlane-metadata.py @@ -51,8 +51,10 @@ languageMap = { 'x-test': None } -# see https://f-droid.org/en/docs/All_About_Descriptions_Graphics_and_Screenshots/ -supportedRichTextTags = { 'li', 'ul', 'ol', 'li', 'b', 'u', 'i' } +# The subset of supported rich text tags in F-Droid and Google Play +# - see https://f-droid.org/en/docs/All_About_Descriptions_Graphics_and_Screenshots/ for F-Droid +# - Google Play doesn't support lists +supportedRichTextTags = { 'b', 'u', 'i' } # List all translated languages present in an Appstream XML file def listAllLanguages(root, langs): @@ -91,6 +93,8 @@ def readText(elem, found, allLanguages): else: for l in allLanguages: found[l] += '<' + elem.tag + '>' + elif elem.tag == 'li': + found[lang] += 'ยท ' if elem.text and elem.text.strip(): found[lang] += elem.text |