RSS export: Make description more readable.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Add HTML tags to make it look neat.
This commit is contained in:
parent
c9221757e6
commit
2f8dffff90
|
@ -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 = "<p>" + description + "</p>";
|
||||
}
|
||||
if (!entry.tags.empty())
|
||||
{
|
||||
description += "Tags: ";
|
||||
description += "<p><strong>Tags:</strong> ";
|
||||
for (const string &tag : entry.tags)
|
||||
{
|
||||
description += tag;
|
||||
|
@ -128,10 +127,13 @@ namespace remwharead
|
|||
description += ", ";
|
||||
}
|
||||
}
|
||||
description += "</p>";
|
||||
}
|
||||
if (!entry.archive_uri.empty())
|
||||
{
|
||||
description += "\n\nArchived version: " + entry.archive_uri;
|
||||
description += "<p><strong>Archived version:</strong> "
|
||||
"<a href=\"" + entry.archive_uri + "\">"
|
||||
+ entry.archive_uri + "</a>";
|
||||
}
|
||||
writer.startElement("", "", "description");
|
||||
writer.characters(description);
|
||||
|
|
Loading…
Reference in New Issue