From f6fff448164fc4d84cda476c046e35edc1c86543 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Thu, 9 Jun 2022 10:27:16 +0200 Subject: [PATCH] non environment text must be only once in otherwise the flatpak appdata test will fail. So make the description to be and add paragraphs to the others --- cmake/generate_appdata.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/generate_appdata.cmake b/cmake/generate_appdata.cmake index deb39119..0aedce19 100644 --- a/cmake/generate_appdata.cmake +++ b/cmake/generate_appdata.cmake @@ -1,6 +1,9 @@ # add release notes to the appdata file file(READ "${CHANGELOG_HTML}" HTML_CHANGELOGS) -string(REGEX REPLACE "

([A-Fa-f0-9]*)<\\/h4>" "\\1" RELEASES ${HTML_CHANGELOGS}) # h4 is unknow to appdata +# it is not allowed to have multiple texts without being in an environment +# So the description will be used for it +string(REGEX REPLACE "

([^<]*)<\\/p>" "\\1" RELEASES ${HTML_CHANGELOGS}) # remove paragraph environment +string(REGEX REPLACE "

([A-Za-z0-9]*)<\\/h4>" "

\\1

" RELEASES ${RELEASES}) # h4 is unknow to appdata so change it to a paragraph environment string(REPLACE "\n" "\n\t" RELEASES ${RELEASES}) # add tabulator string(REGEX REPLACE "

(v[1-9]\\.[0-9]\\.[0-9]) - ([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])<\\/h3>" "\n\t" RELEASES ${RELEASES}) string(REGEX REPLACE "
" "
\n\t
" RELEASES ${RELEASES})