summaryrefslogtreecommitdiffstats
path: root/src/groupdef.cpp
diff options
context:
space:
mode:
authorArtur Kink <artur.kinK@gmail.com>2016-09-26 02:38:57 (GMT)
committerArtur Kink <artur.kinK@gmail.com>2016-09-26 02:38:57 (GMT)
commit051fb8a536e1d52aa0a0422186975852dd139c06 (patch)
tree525395efdffa5f7e09b278940f1cc8c3ff31415f /src/groupdef.cpp
parent98d3f8e7d581c589e7bd1a7faf98fc6736847cf1 (diff)
downloadDoxygen-051fb8a536e1d52aa0a0422186975852dd139c06.zip
Doxygen-051fb8a536e1d52aa0a0422186975852dd139c06.tar.gz
Doxygen-051fb8a536e1d52aa0a0422186975852dd139c06.tar.bz2
Fixup man only output to use generator state push pop
Diffstat (limited to 'src/groupdef.cpp')
-rw-r--r--src/groupdef.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp
index 8c688d7..ccfa0df 100644
--- a/src/groupdef.cpp
+++ b/src/groupdef.cpp
@@ -712,10 +712,8 @@ void GroupDef::writeDetailedDescription(OutputList &ol,const QCString &title)
)
{
ol.pushGeneratorState();
- ol.disableAllBut(OutputGenerator::Man); // always print title for man page
if (pageDict->count()!=countMembers()) // not only pages -> classical layout
{
- ol.enableAll();
ol.pushGeneratorState();
ol.disable(OutputGenerator::Html);
ol.writeRuler();
@@ -725,6 +723,10 @@ void GroupDef::writeDetailedDescription(OutputList &ol,const QCString &title)
ol.writeAnchor(0,"details");
ol.popGeneratorState();
}
+ else
+ {
+ ol.disableAllBut(OutputGenerator::Man); // always print title for man page
+ }
ol.startGroupHeader();
ol.parseText(title);
ol.endGroupHeader();
@@ -773,9 +775,10 @@ void GroupDef::writeBriefDescription(OutputList &ol)
if (rootNode && !rootNode->isEmpty())
{
ol.startParagraph();
+ ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Man);
ol.writeString(" - ");
- ol.enableAll();
+ ol.popGeneratorState();
ol.writeDoc(rootNode,this,0);
ol.pushGeneratorState();
ol.disable(OutputGenerator::RTF);