Fix unordered list interpretation

Fixed a bug which closed the HTML unordered list tag prematurely if the
file buffer ended before the end of the line.
This commit is contained in:
luca0N! 2022-03-22 17:44:13 -03:00
parent 46bd5333a8
commit 1cc18e0b2a
Signed by: luca0N
GPG Key ID: 2E7B4655CF16D7D6
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ std::string make_html(std::filesystem::path const &path) {
// End ul tag if it's active and a new line doesn't contain an
// item.
if (tag_ul && buf[0] != '-') {
if (tag_ul && newline && buf[0] != '-') {
tag_ul = false;
html += "</ul>";
}