diff options
author | albert-github <albert.tests@gmail.com> | 2020-09-20 12:18:42 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-09-20 12:18:42 (GMT) |
commit | b5e77b66a4cea0fbfc011f90993a098bd6651e09 (patch) | |
tree | 70cce46ed1308ea7e0a8d48cc94343eb20a9cd41 /src | |
parent | 1206a9b9b49cdd904c1b5f003c874acd94472806 (diff) | |
download | Doxygen-b5e77b66a4cea0fbfc011f90993a098bd6651e09.zip Doxygen-b5e77b66a4cea0fbfc011f90993a098bd6651e09.tar.gz Doxygen-b5e77b66a4cea0fbfc011f90993a098bd6651e09.tar.bz2 |
Miscounting of lines in case of fenced code block
When we have an example like:
~~~
Page
=======
test text
test text \error1
```
make
```
```
make
```
test text \error2
~~~
we get the warnings:
```
aa.md:5: warning: Found unknown command '\error1'
aa.md:17: warning: Found unknown command '\error2'
```
instead of
```
aa.md:5: warning: Found unknown command '\error1'
aa.md:15: warning: Found unknown command '\error2'
```
this is due to the fact that there are 2 returns in case of a fenced code block, one with the ``endcode` but with the detection of the fenced code block (`isFencedCodeBlock`) it is not "removed".
Diffstat (limited to 'src')
-rw-r--r-- | src/markdown.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 3089b8e..babf3f8 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2264,7 +2264,7 @@ void Markdown::writeFencedCodeBlock(const char *data,const char *lng, } addStrEscapeUtf8Nbsp(data+blockStart,blockEnd-blockStart); m_out.addStr("\n"); - m_out.addStr("@endcode\n"); + m_out.addStr("@endcode"); } QCString Markdown::processQuotations(const QCString &s,int refIndent) |