summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 49846b6..227f18e 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -973,9 +973,13 @@ void ClassDef::writeDocumentation(OutputList &ol)
}
// repeat brief description
- if (!briefDescription().isEmpty())
+ if (!briefDescription().isEmpty() && Config::repeatBriefFlag)
{
ol+=briefOutput;
+ }
+ if (!briefDescription().isEmpty() && Config::repeatBriefFlag &&
+ !documentation().isEmpty())
+ {
ol.newParagraph();
}
// write documentation