summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authorArtur Kink <artur.kinK@gmail.com>2016-09-25 03:38:16 (GMT)
committerArtur Kink <artur.kinK@gmail.com>2016-09-25 03:38:16 (GMT)
commit98d3f8e7d581c589e7bd1a7faf98fc6736847cf1 (patch)
treef62392dd3c901ce841e5afe082696aff0fddc13a /src/filedef.cpp
parentd4beb392b452d14d375e1406ec4fb0f6436081ee (diff)
downloadDoxygen-98d3f8e7d581c589e7bd1a7faf98fc6736847cf1.zip
Doxygen-98d3f8e7d581c589e7bd1a7faf98fc6736847cf1.tar.gz
Doxygen-98d3f8e7d581c589e7bd1a7faf98fc6736847cf1.tar.bz2
For manpages remove trailing dash when no brief description
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 0a1e6e2..0791ebc 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -365,7 +365,7 @@ void FileDef::writeDetailedDescription(OutputList &ol,const QCString &title)
void FileDef::writeBriefDescription(OutputList &ol)
{
- if (!briefDescription().isEmpty() && Config_getBool(BRIEF_MEMBER_DESC))
+ if (hasBriefDescription())
{
DocRoot *rootNode = validatingParseDoc(briefFile(),briefLine(),this,0,
briefDescription(),TRUE,FALSE,0,TRUE,FALSE);
@@ -373,6 +373,9 @@ void FileDef::writeBriefDescription(OutputList &ol)
if (rootNode && !rootNode->isEmpty())
{
ol.startParagraph();
+ ol.disableAllBut(OutputGenerator::Man);
+ ol.writeString(" - ");
+ ol.enableAll();
ol.writeDoc(rootNode,this,0);
ol.pushGeneratorState();
ol.disable(OutputGenerator::RTF);