From 9d0908359363dbb43236767669c214721700acf7 Mon Sep 17 00:00:00 2001 From: Artur Kink Date: Tue, 18 Jul 2017 22:29:20 -0400 Subject: Fixup man page NAME section when page has title --- src/pagedef.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- cgit v0.12