From 1cc18e0b2af1325680b6d3d745e007971e5cf8c9 Mon Sep 17 00:00:00 2001 From: luca0N! Date: Tue, 22 Mar 2022 17:44:13 -0300 Subject: [PATCH] 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. --- src/MarkdownParser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MarkdownParser.cxx b/src/MarkdownParser.cxx index ae0b0ce..dffe216 100644 --- a/src/MarkdownParser.cxx +++ b/src/MarkdownParser.cxx @@ -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 += ""; }