Permalink
Browse files

Fixup man page NAME section when page has title

  • Loading branch information...
artur-kink committed Jul 19, 2017
1 parent daa2c09 commit 9d0908359363dbb43236767669c214721700acf7
Showing with 6 additions and 1 deletion.
  1. +6 −1 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);

0 comments on commit 9d09083

Please sign in to comment.