summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-06-09 11:53:04 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-06-09 11:53:04 (GMT)
commit38924a2423ce806357b66465ec39a35868c5cb71 (patch)
tree69f71c2ba7ba823da0c12cc0fa686410ec9073ac
parentefbfb54c007d13ecfaa939829c80b75f1a67abf3 (diff)
downloadDoxygen-38924a2423ce806357b66465ec39a35868c5cb71.zip
Doxygen-38924a2423ce806357b66465ec39a35868c5cb71.tar.gz
Doxygen-38924a2423ce806357b66465ec39a35868c5cb71.tar.bz2
issue #7043 html output for markdown: different output when using '# Header {#mainpage}' and 'Header {#mainpage}\n===='
In case of an ATX header the id was overwritten again by the subsequent call to extractTitleId, this should only happen in case of a non ATX header ('===' headers returned already beforehand).
-rw-r--r--src/markdown.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 15f119b..8670642 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2439,7 +2439,10 @@ static QCString extractPageTitle(QCString &docs,QCString &id)
{
docs=docs.mid(end1);
}
- id = extractTitleId(title, 0);
+ else
+ {
+ id = extractTitleId(title, 0);
+ }
//printf("extractPageTitle(title='%s' docs='%s' id='%s')\n",title.data(),docs.data(),id.data());
return title;
}