Use unordered lists in HTML/RSS generators.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a37cf52cda
commit
3af723abd8
|
@ -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>"
|
||||
|
|
|
@ -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>";
|
||||
|
|
Reference in New Issue
Block a user