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:
parent
46bd5333a8
commit
1cc18e0b2a
|
@ -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
|
// End ul tag if it's active and a new line doesn't contain an
|
||||||
// item.
|
// item.
|
||||||
if (tag_ul && buf[0] != '-') {
|
if (tag_ul && newline && buf[0] != '-') {
|
||||||
tag_ul = false;
|
tag_ul = false;
|
||||||
html += "</ul>";
|
html += "</ul>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue