diff --git a/cmake/generate_appdata.cmake b/cmake/generate_appdata.cmake
index 6f721122..605932e6 100644
--- a/cmake/generate_appdata.cmake
+++ b/cmake/generate_appdata.cmake
@@ -1,6 +1,6 @@
# add release notes to the appdata file
file(READ "${CHANGELOG_HTML}" HTML_CHANGELOGS)
string(REPLACE "\n" "\n\t" RELEASES ${HTML_CHANGELOGS}) # 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>" "" RELEASES ${RELEASES})
-string(REGEX REPLACE "
" "" RELEASES ${RELEASES})
+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})
configure_file(${APPDATA_CONF} ${APPDATA})