Permalink
Browse files

Fix https://bugzilla.gnome.org/show_bug.cgi?id=782583.

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 c87f730fe4bc40f72ed5fa52fe032a7bdf2d549c
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/pagedef.cpp
View
@@ -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.}

0 comments on commit c87f730

Please sign in to comment.