summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-26 18:27:49 (GMT)
committerGitHub <noreply@github.com>2020-12-26 18:27:49 (GMT)
commit0ee669cc7239bf2cfdd6091c699cd7d89506506b (patch)
tree4c0cc7c2ca54b31d15e943aa992c0e04f156bd90
parenta945d52a62b73b23674f6dc0948e22011e278cf9 (diff)
parent75c5c2837a9652cfa94e349c334d5a8f67b91d60 (diff)
downloadDoxygen-0ee669cc7239bf2cfdd6091c699cd7d89506506b.zip
Doxygen-0ee669cc7239bf2cfdd6091c699cd7d89506506b.tar.gz
Doxygen-0ee669cc7239bf2cfdd6091c699cd7d89506506b.tar.bz2
Merge pull request #8277 from albert-github/feature/bug_cnt_md_endcode
Miscounting lines in case a fenced code block
-rw-r--r--src/markdown.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 4a40a35..340ac99 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -1649,7 +1649,7 @@ static bool isFencedCodeBlock(const char *data,int size,int refIndent,
{
if (data[i]==tildaChar)
{
- end=i-1;
+ end=i;
int endTildes=0;
while (i<size && data[i]==tildaChar) endTildes++,i++;
while (i<size && data[i]==' ') i++;
@@ -2291,7 +2291,6 @@ void Markdown::writeFencedCodeBlock(const char *data,const char *lng,
m_out.addStr("{"+lang+"}");
}
addStrEscapeUtf8Nbsp(data+blockStart,blockEnd-blockStart);
- m_out.addStr(" ");
m_out.addStr("@endcode");
}