diff options
author | albert-github <albert.tests@gmail.com> | 2020-10-10 16:35:22 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-10-10 16:35:22 (GMT) |
commit | e9d1556252ceea914f7ca98b85a365cd4af594fe (patch) | |
tree | cfd602ca2979f84639a6abbf8e15a9ec07a2db0e /src/markdown.cpp | |
parent | 7956820acffd9e672a03f60fd4b20ec9aa63928f (diff) | |
download | Doxygen-e9d1556252ceea914f7ca98b85a365cd4af594fe.zip Doxygen-e9d1556252ceea914f7ca98b85a365cd4af594fe.tar.gz Doxygen-e9d1556252ceea914f7ca98b85a365cd4af594fe.tar.bz2 |
Miscounting of lines in respect to page command (ATX header)
In case of an ATX header for a page at the beginning of a file (i.e. `#...`) there is a line miscounting.
Analogous as done for lines type:
```
The page
====
```
in pull request #8056 we have to add an extra newline.
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index bd7751a..5c45e6e 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2529,6 +2529,7 @@ QCString Markdown::extractPageTitle(QCString &docs,QCString &id, int &prepend) } if (i<end1 && isAtxHeader(data+i,end1-i,title,id,FALSE)>0) { + docs+="\n"; docs+=docs_org.mid(end1); } else |