From 2f8dffff90be6dab152924ec084d64d75c1ca742 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 Sep 2019 21:46:30 +0200 Subject: [PATCH] RSS export: Make description more readable. Add HTML tags to make it look neat. --- src/lib/export/rss.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/export/rss.cpp b/src/lib/export/rss.cpp index fc2f382..ac82bd8 100644 --- a/src/lib/export/rss.cpp +++ b/src/lib/export/rss.cpp @@ -58,7 +58,6 @@ namespace remwharead writer.endElement("", "", "title"); writer.startElement("", "", "link"); - // FIXME: There has to be an URL here. writer.endElement("", "", "link"); writer.startElement("", "", "description"); @@ -115,11 +114,11 @@ namespace remwharead string description = entry.description; if (!description.empty()) { - description += "\n\n"; + description = "

" + description + "

"; } if (!entry.tags.empty()) { - description += "Tags: "; + description += "

Tags: "; for (const string &tag : entry.tags) { description += tag; @@ -128,10 +127,13 @@ namespace remwharead description += ", "; } } + description += "

"; } if (!entry.archive_uri.empty()) { - description += "\n\nArchived version: " + entry.archive_uri; + description += "

Archived version: " + "" + + entry.archive_uri + ""; } writer.startElement("", "", "description"); writer.characters(description);