diff options
author | albert-github <albert.tests@gmail.com> | 2020-12-22 17:28:39 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-12-22 17:28:39 (GMT) |
commit | 9c572e72b1070c5d8b58f7d4b6f72fdaede6e8ed (patch) | |
tree | dbdff0b45afac2d195de9d549bfd794cd14c105f | |
parent | 48096bb6c5d7a2879327c82cc0144eef8e6d8ac8 (diff) | |
download | Doxygen-9c572e72b1070c5d8b58f7d4b6f72fdaede6e8ed.zip Doxygen-9c572e72b1070c5d8b58f7d4b6f72fdaede6e8ed.tar.gz Doxygen-9c572e72b1070c5d8b58f7d4b6f72fdaede6e8ed.tar.bz2 |
Miscounting of lines in case of inserting an anchor for a "H." tag
When having a simple file like:
```
# The page
# a section
##### a h5 section
\error7
```
we get as warning:
```
.../aa.md:8: warning: Found unknown command '\error7'
```
instead of
```
.../aa.md:7: warning: Found unknown command '\error7'
```
This is due to the fact that the
```
##### a h5 section
```
is translated into:
```
\anchor autotoc_md2
<h5>a h5 section</h5>
```
instead of
```
\anchor autotoc_md2\ilinebr <h5>a h5 section</h5>
```
-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 0cf8b87..4a40a35 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2073,7 +2073,7 @@ void Markdown::writeOneLineHeaderOrRuler(const char *data,int size) { if (!id.isEmpty()) { - m_out.addStr("\\anchor "+id+"\n"); + m_out.addStr("\\anchor "+id+"\\ilinebr "); } hTag.sprintf("h%d",level); m_out.addStr("<"+hTag+">"); |