summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-07-28 08:30:11 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-07-28 08:30:11 (GMT)
commitda01797a17b0374c9284cc84afe901753882d726 (patch)
treeeb317dd1794b76781d957bc411725ed842be5ecc /src/markdown.cpp
parentbf12c99e3a370921e03c946d213129633eaeec27 (diff)
parent603b2ada84164c9e740552cec052c01803bee383 (diff)
downloadDoxygen-da01797a17b0374c9284cc84afe901753882d726.zip
Doxygen-da01797a17b0374c9284cc84afe901753882d726.tar.gz
Doxygen-da01797a17b0374c9284cc84afe901753882d726.tar.bz2
Merge branch 'feature/issue_7923' of https://github.com/albert-github/doxygen into albert-github-feature/issue_7923
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 2add54c..2863669 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2606,7 +2606,7 @@ QCString Markdown::detab(const QCString &s,int &refIndent)
//---------------------------------------------------------------------------
-QCString Markdown::process(const QCString &input)
+QCString Markdown::process(const QCString &input, int &startNewlines)
{
if (input.isEmpty()) return input;
int refIndent;
@@ -2637,7 +2637,7 @@ QCString Markdown::process(const QCString &input)
if (p)
{
while (*p==' ') p++; // skip over spaces
- while (*p=='\n') p++; // skip over newlines
+ while (*p=='\n') {startNewlines++;p++;}; // skip over newlines
if (qstrncmp(p,"<br>",4)==0) p+=4; // skip over <br>
}
if (p>result.data())
@@ -2726,7 +2726,9 @@ void MarkdownOutlineParser::parseInput(const char *fileName,
Protection prot=Public;
bool needsEntry = FALSE;
int position=0;
- QCString processedDocs = markdown.process(docs);
+ int startNewlines;
+ QCString processedDocs = markdown.process(docs,startNewlines);
+ lineNr += startNewlines;
while (p->commentScanner.parseCommentBlock(
this,
current.get(),