From 8be6d4ec55738b074a5b0ee225cbde05067222a5 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 22 Oct 2020 13:16:52 +0200 Subject: Miscounting lines with markdown blockquote When we have a program like: ``` # test \aa2 > \aa3 \aa4 ``` we get the warnings like: ``` .../aa.md:2: warning: Found unknown command '\aa2' .../aa.md:4: warning: Found unknown command '\aa3' .../aa.md:6: warning: Found unknown command '\aa4' ``` instead of: ``` .../aa.md:2: warning: Found unknown command '\aa2' .../aa.md:3: warning: Found unknown command '\aa3' .../aa.md:4: warning: Found unknown command '\aa4' ``` This has been corrected. --- src/markdown.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/markdown.cpp b/src/markdown.cpp index 7f6dc9b..2130703 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2114,14 +2114,14 @@ int Markdown::writeBlockQuote(const char *data,int size) { for (l=curLevel;l\n"); + m_out.addStr("
"); } } else if (level add end markers { for (l=level;l\n"); + m_out.addStr("
"); } } curLevel=level; @@ -2134,7 +2134,7 @@ int Markdown::writeBlockQuote(const char *data,int size) // end of comment within blockquote => add end markers for (l=0;l\n"); + m_out.addStr(""); } return i; } -- cgit v0.12