Fix HTML in generators.
All checks were successful
continuous-integration/drone/push Build is passing

Apparently lists can't be in inside paragraphs.
This commit is contained in:
tastytea 2020-10-17 07:07:48 +02:00
parent 3af723abd8
commit cbb202510a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 5 additions and 5 deletions

View File

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

View File

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