diff options
author | albert-github <albert.tests@gmail.com> | 2020-10-08 13:08:42 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-10-08 13:08:42 (GMT) |
commit | 85fba651ec2a6062e5ab21f06783770ab6fede3b (patch) | |
tree | 7e1b17f755effb51deddf603ec645fb03118bc19 /src | |
parent | 7859a9a0374df8da60d498857b8f805f861b83d1 (diff) | |
download | Doxygen-85fba651ec2a6062e5ab21f06783770ab6fede3b.zip Doxygen-85fba651ec2a6062e5ab21f06783770ab6fede3b.tar.gz Doxygen-85fba651ec2a6062e5ab21f06783770ab6fede3b.tar.bz2 |
Incorrect counting of markdown verbatim block
When we have a file aa.md like:
```
Initial text 1
verbatim text?
Some text \aa5
```
and a file bb.md like
```
Initial text 1
verbatim text?
Some text \aa4
``
we get the warnings like (with current master, with 1.8.20 it is even further off):
```
aa.md:6: warning: Found unknown command '\aa5'
bb.md:5: warning: Found unknown command '\aa4'
```
instead of
```
aa.md:5: warning: Found unknown command '\aa5'
bb.md:4: warning: Found unknown command '\aa4'
```
This has been corrected
Diffstat (limited to 'src')
-rw-r--r-- | src/markdown.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index ae78533..bd7751a 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2130,6 +2130,7 @@ int Markdown::writeCodeBlock(const char *data,int size,int refIndent) TRACE(data); int i=0,end; //printf("writeCodeBlock: data={%s}\n",QCString(data).left(size).data()); + // no need for \ilinebr here as the prvious like was empty and was skipped m_out.addStr("@verbatim\n"); int emptyLines=0; while (i<size) @@ -2164,7 +2165,7 @@ int Markdown::writeCodeBlock(const char *data,int size,int refIndent) break; } } - m_out.addStr("@endverbatim\n"); + m_out.addStr("@endverbatim\\ilinebr "); while (emptyLines>0) // write skipped empty lines { // add empty line |