From e9d1556252ceea914f7ca98b85a365cd4af594fe Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 10 Oct 2020 18:35:22 +0200 Subject: 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. --- src/markdown.cpp | 1 + 1 file changed, 1 insertion(+) 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 (i0) { + docs+="\n"; docs+=docs_org.mid(end1); } else -- cgit v0.12