Reformat.

This commit is contained in:
tastytea 2020-10-30 22:03:26 +01:00
parent 799d702ca5
commit 4606d04780
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 8 additions and 6 deletions

View File

@ -15,6 +15,7 @@
*/
#include "rss.hpp"
#include "cgi.hpp"
#include "files.hpp"
#include "git.hpp"
@ -158,17 +159,18 @@ void write_rss(ostream &out, const vector<entry_type> &entries,
tmp_item_description += "</p><strong>Receipts:</strong><ul>";
for (const auto &receipt : entry.receipts)
{
tmp_item_description += format(
"<li><a href=\"{0:s}\">{0:s}</a></li>", receipt);
tmp_item_description += format("<li><a href=\"{0:s}\">"
"{0:s}</a></li>",
receipt);
}
tmp_item_description += "</ul>";
if (!entry.screenshot_filepath.empty())
{
tmp_item_description += "<p><strong>Screenshot:</strong><br>";
tmp_item_description += format(
"<a href=\"{0:s}{1:s}\"><img "
"src=\"{0:s}{1:s}\" height=\"200\"></a></p>\n",
baseurl, entry.screenshot_filepath);
tmp_item_description += format("<a href=\"{0:s}{1:s}\">"
"<img src=\"{0:s}{1:s}\" "
"height=\"200\"></a></p>\n",
baseurl, entry.screenshot_filepath);
}
auto item_description{item.append_child("description")};
item_description.append_child(pugi::node_cdata)