Use unordered lists in HTML/RSS generators.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-10-17 05:26:17 +02:00
parent a37cf52cda
commit 3af723abd8
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 8 additions and 16 deletions

View File

@ -71,17 +71,13 @@ void write_html(ostream &out, const vector<entry_type> &entries)
out << tag;
}
out << "</p>\n";
out << " <p><strong>Receipts:</strong><br>\n";
out << " <p><strong>Receipts:</strong>\n <ul>\n";
for (const auto &receipt : entry.receipts)
{
if (receipt != *(entry.receipts.begin()))
{
out << "<br>\n";
}
out << " <a href=\"" << receipt << "\">" << receipt
<< "</a>";
out << " <li><a href=\"" << receipt << "\">" << receipt
<< "</a></li>\n";
}
out << "\n </p>\n";
out << " </ul>\n </p>\n";
if (!entry.screenshot_filepath.empty())
{
out << " <p><strong>Screenshot:</strong><br>"

View File

@ -161,17 +161,13 @@ void write_rss(ostream &out, const vector<entry_type> &entries,
item_description += tag;
}
item_description += "</p>";
item_description += "<p><strong>Receipts:</strong><br>";
item_description += "<p><strong>Receipts:</strong><ul>";
for (const auto &receipt : entry.receipts)
{
if (receipt != *(entry.receipts.begin()))
{
item_description += "<br>";
}
((((item_description += "<a href=\"") += receipt) += "\">") +=
receipt) += "</a>";
((((item_description += "<li><a href=\"") += receipt) += "\">") +=
receipt) += "</a></li>";
}
item_description += "</p>";
item_description += "</ul></p>";
if (!entry.screenshot_filepath.empty())
{
item_description += "<p><strong>Screenshot:</strong><br>";