diff options
-rw-r--r-- | src/commentscan.l | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 665360c..dc676d4 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -827,6 +827,7 @@ static inline void setOutput(OutputContext ctx) } else { + if (!current->doc.isEmpty()) current->doc += "\n"; pOutputString = ¤t->doc; inContext = OutputDoc; // need to switch to detailed docs, see bug 631380 } @@ -3158,6 +3159,8 @@ bool parseCommentBlock(/* in */ ParserInterface *parser, parseMore = FALSE; inBody = isInbody; outputXRef.resize(0); + if (!(isBrief || isAutoBriefOn)) + if (!current->doc.isEmpty()) current->doc += "\n"; setOutput( isBrief || isAutoBriefOn ? OutputBrief : OutputDoc ); briefEndsAtDot = isAutoBriefOn; g_condCount = 0; |