diff options
author | albert-github <albert.tests@gmail.com> | 2020-10-18 16:53:02 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-10-18 16:53:02 (GMT) |
commit | 33c29dccd16d96b3a5c29fa476e8e9ce376134cd (patch) | |
tree | 57a9dc86f5c60b2ffebc35011208b5e3c8773058 | |
parent | ccca51f80ce6a4c380545800f6ea8b5ae27c8724 (diff) | |
download | Doxygen-33c29dccd16d96b3a5c29fa476e8e9ce376134cd.zip Doxygen-33c29dccd16d96b3a5c29fa476e8e9ce376134cd.tar.gz Doxygen-33c29dccd16d96b3a5c29fa476e8e9ce376134cd.tar.bz2 |
Miscounting in markdown in case of a horizontal ruler.
When having code like:
```
A horizonal ruler by means of underscores
\aa2
____
\aa4
A horizonal ruler by means of hyphens
\bb7
- ---
\bb9
A horizonal ruler by means of asterisks
\cc12
****
\cc14
```
we get wanungs like:
```
.../aa.md:2: warning: Found unknown command '\aa2'
.../aa.md:5: warning: Found unknown command '\aa4'
.../aa.md:8: warning: Found unknown command '\bb7'
.../aa.md:11: warning: Found unknown command '\bb9'
.../aa.md:14: warning: Found unknown command '\cc12'
.../aa.md:17: warning: Found unknown command '\cc14'
```
instead of
```
.../aa.md:2: warning: Found unknown command '\aa2'
.../aa.md:4: warning: Found unknown command '\aa4'
.../aa.md:7: warning: Found unknown command '\bb7'
.../aa.md:9: warning: Found unknown command '\bb9'
.../aa.md:12: warning: Found unknown command '\cc12'
.../aa.md:14: warning: Found unknown command '\cc14'
```
This has been fixed.
-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 930efd6..20dc9ab 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2033,7 +2033,7 @@ void Markdown::writeOneLineHeaderOrRuler(const char *data,int size) QCString id; if (isHRuler(data,size)) { - m_out.addStr("\n<hr>\n"); + m_out.addStr("<hr>\n"); } else if ((level=isAtxHeader(data,size,header,id,TRUE))) { |