From 93d1c4621df42ee41d7197aca27c8cf2ce8437d7 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 12 Oct 2013 16:10:27 +0200 Subject: Bug 709803 - Generated hhc file contains an error for a section of a mainpage --- src/doxygen.cpp | 4 ++-- src/pagedef.cpp | 4 ++-- src/pagedef.h | 2 +- src/util.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/doxygen.cpp b/src/doxygen.cpp index e766add..92ba868 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -8592,7 +8592,7 @@ static void findMainPage(EntryNav *rootNav) indexName, root->brief+root->doc+root->inbodyDocs,title); //setFileNameForSections(root->anchors,"index",Doxygen::mainPage); Doxygen::mainPage->setBriefDescription(root->brief,root->briefFile,root->briefLine); - Doxygen::mainPage->setFileName(indexName); + Doxygen::mainPage->setFileName(indexName,TRUE); Doxygen::mainPage->setShowToc(root->stat); addPageToContext(Doxygen::mainPage,rootNav); @@ -8790,7 +8790,7 @@ static void buildExampleList(EntryNav *rootNav) PageDef *pd=new PageDef(root->fileName,root->startLine, root->name,root->brief+root->doc+root->inbodyDocs,root->args); pd->setBriefDescription(root->brief,root->briefFile,root->briefLine); - pd->setFileName(convertNameToFile(pd->name()+"-example",FALSE,TRUE)); + pd->setFileName(convertNameToFile(pd->name()+"-example",FALSE,TRUE),FALSE); pd->addSectionsToDefinition(root->anchors); pd->setLanguage(root->lang); //pi->addSections(root->anchors); diff --git a/src/pagedef.cpp b/src/pagedef.cpp index 0133be1..3c9e1b6 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -61,10 +61,10 @@ QCString PageDef::getOutputFileBase() const return m_fileName; } -void PageDef::setFileName(const char *name) +void PageDef::setFileName(const char *name,bool dontEscape) { static bool shortNames = Config_getBool("SHORT_NAMES"); - if (shortNames) + if (shortNames && !dontEscape) { m_fileName = convertNameToFile(name); } diff --git a/src/pagedef.h b/src/pagedef.h index 25a42dd..141c03b 100644 --- a/src/pagedef.h +++ b/src/pagedef.h @@ -32,7 +32,7 @@ class PageDef : public Definition ~PageDef(); // setters - void setFileName(const char *name); + void setFileName(const char *name,bool dontEscape); void setShowToc(bool b); // getters diff --git a/src/util.cpp b/src/util.cpp index a67cf5c..380ae94 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6316,11 +6316,11 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle, if (tagInfo) { pd->setReference(tagInfo->tagName); - pd->setFileName(tagInfo->fileName); + pd->setFileName(tagInfo->fileName,TRUE); } else { - pd->setFileName(convertNameToFile(pd->name(),FALSE,TRUE)); + pd->setFileName(convertNameToFile(pd->name(),FALSE,TRUE),FALSE); } //printf("Appending page `%s'\n",baseName.data()); -- cgit v0.12