summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-10-06 15:59:23 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-10-06 15:59:23 (GMT)
commita05a7ae2e65b9e438327d4a50c81df18f2b49a4d (patch)
treee9dcf58418613c3846b8df3c064acfb6f33d890c
parent2c7b7cb90091ea43b42bf4abe886631e073f639b (diff)
downloadDoxygen-a05a7ae2e65b9e438327d4a50c81df18f2b49a4d.zip
Doxygen-a05a7ae2e65b9e438327d4a50c81df18f2b49a4d.tar.gz
Doxygen-a05a7ae2e65b9e438327d4a50c81df18f2b49a4d.tar.bz2
issue #8078 Warning and extra text when using Markdown as mainpage
Also replace the `@` in a label.
-rw-r--r--src/markdown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index ae78533..d7b9186 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2661,7 +2661,7 @@ QCString markdownFileNameToId(const QCString &fileName)
QCString baseFn = stripFromPath(QFileInfo(fileName).absFilePath().utf8());
int i = baseFn.findRev('.');
if (i!=-1) baseFn = baseFn.left(i);
- QCString baseName = substitute(substitute(substitute(baseFn," ","_"),"/","_"),":","_");
+ QCString baseName = substitute(substitute(substitute(substitute(baseFn," ","_"),"/","_"),":","_"),"@","_");
//printf("markdownFileNameToId(%s)=md_%s\n",qPrint(fileName),qPrint(baseName));
return "md_"+baseName;
}