Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't write both page name and title to NAME section of man page, if they are the same.
  • Loading branch information
MarkCallow committed Oct 13, 2017
1 parent bcf34f8 commit c87f730
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pagedef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,11 @@ void PageDef::writeDocumentation(OutputList &ol)
ol.writeString(" - ");
ol.popGeneratorState();

ol.generateDoc(docFile(),docLine(),this,0,si->title,TRUE,FALSE,0,TRUE,FALSE);
ol.endSection(si->label,si->type);
if (si->title != manPageName)
{
ol.generateDoc(docFile(),docLine(),this,0,si->title,TRUE,FALSE,0,TRUE,FALSE);
ol.endSection(si->label,si->type);
}
}
ol.popGeneratorState();
//2.}
Expand Down

0 comments on commit c87f730

Please sign in to comment.