summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Kink <artur.kinK@gmail.com>2017-07-19 02:29:20 (GMT)
committerArtur Kink <artur.kinK@gmail.com>2017-07-19 02:29:20 (GMT)
commit9d0908359363dbb43236767669c214721700acf7 (patch)
tree8ad4dadaf0d2cec4f0af1ed27b88c847e81cd433
parentdaa2c0960aa5044990c3e06afe8c15694e8be48d (diff)
downloadDoxygen-9d0908359363dbb43236767669c214721700acf7.zip
Doxygen-9d0908359363dbb43236767669c214721700acf7.tar.gz
Doxygen-9d0908359363dbb43236767669c214721700acf7.tar.bz2
Fixup man page NAME section when page has title
-rw-r--r--src/pagedef.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pagedef.cpp b/src/pagedef.cpp
index 1210305..e797b050 100644
--- a/src/pagedef.cpp
+++ b/src/pagedef.cpp
@@ -169,6 +169,11 @@ void PageDef::writeDocumentation(OutputList &ol)
ol.endTitleHead(manPageName, manPageName);
if (si)
{
+ ol.pushGeneratorState();
+ ol.disableAllBut(OutputGenerator::Man);
+ ol.writeString(" - ");
+ ol.popGeneratorState();
+
ol.generateDoc(docFile(),docLine(),this,0,si->title,TRUE,FALSE,0,TRUE,FALSE);
ol.endSection(si->label,si->type);
}
@@ -230,7 +235,7 @@ void PageDef::writePageDocumentation(OutputList &ol)
ol.startTextBlock();
QCString docStr = documentation()+inbodyDocumentation();
- if (!docStr.isEmpty())
+ if (hasBriefDescription() && !Doxygen::sectionDict->find(name()))
{
ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Man);