diff options
author | albert-github <albert.tests@gmail.com> | 2021-02-16 14:43:14 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-02-16 14:43:14 (GMT) |
commit | d91a12be4e0b888dd8521bdc12131e0ee4862fb5 (patch) | |
tree | 73bf068780108c14129904b884948954744a5e04 /src | |
parent | a136cfef5489af08ada5ed8c928a5876133b9f3e (diff) | |
download | Doxygen-d91a12be4e0b888dd8521bdc12131e0ee4862fb5.zip Doxygen-d91a12be4e0b888dd8521bdc12131e0ee4862fb5.tar.gz Doxygen-d91a12be4e0b888dd8521bdc12131e0ee4862fb5.tar.bz2 |
Strange HTML tab title in case of a page without title
In case we have an example like:
```
/// @page Bug_err
///
/// \brief Some text in cpp file
/// \details Some detailed text in cpp file
```
we will have as in the HTML tab: `Project Title: $title` as the page has an empty title.
A better title would in this case be: `Project Title: Bug_err`.
This has been implemented by setting the name of the page in the empty title. In case of a main page the xml output sets the empty title to the PROJECT_NAME, as the new, default, setting would see to it that also the mainpage with an empty title would be set we have to see that this is done beforehand.
Diffstat (limited to 'src')
-rw-r--r-- | src/doxygen.cpp | 1 | ||||
-rw-r--r-- | src/pagedef.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index f5a280b..b79e55b 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -8587,6 +8587,7 @@ static void findMainPage(Entry *root) //printf("mainpage: docLine=%d startLine=%d\n",root->docLine,root->startLine); //printf("Found main page! \n======\n%s\n=======\n",root->doc.data()); QCString title=root->args.stripWhiteSpace(); + if (title.isEmpty()) title = Config_getString(PROJECT_NAME); //QCString indexName=Config_getBool(GENERATE_TREEVIEW)?"main":"index"; QCString indexName="index"; Doxygen::mainPage.reset(createPageDef(root->docFile,root->docLine, diff --git a/src/pagedef.cpp b/src/pagedef.cpp index d3cf823..a3cc0b5 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -82,7 +82,7 @@ PageDef *createPageDef(const char *f,int l,const char *n,const char *d,const cha PageDefImpl::PageDefImpl(const char *f,int l,const char *n, const char *d,const char *t) - : DefinitionMixin(f,l,1,n), m_title(t) + : DefinitionMixin(f,l,1,n), m_title(t?t:n) { setDocumentation(d,f,l); m_pageScope = 0; |