diff options
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 966183d..56c0d08 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -2671,7 +2671,7 @@ bool parseCommentBlock(/* in */ ParserInterface *parser, warn(yyFileName,yyLineNr,"Documentation block ended in the middle of a conditional section!"); } - current->doc=stripLeadingAndTrailingEmptyLines(current->doc); + current->doc=stripLeadingAndTrailingEmptyLines(current->doc,current->docLine); if (current->section==Entry::FILEDOC_SEC && current->doc.isEmpty()) { @@ -2693,8 +2693,10 @@ bool parseCommentBlock(/* in */ ParserInterface *parser, } Debug::print(Debug::CommentScan,0, - "brief=[%s]\ndocs=[%s]\ninbody=[%s]\n===========\n", - current->brief.data(),current->doc.data(),current->inbodyDocs.data() + "brief=[line=%d\n%s]\ndocs=[line=%d\n%s]\ninbody=[line=%d\n%s]\n===========\n", + current->briefLine,current->brief.data(), + current->docLine,current->doc.data(), + current->inbodyLine,current->inbodyDocs.data() ); checkFormula(); @@ -2876,7 +2878,7 @@ static void groupAddDocs(Entry *e,const char *fileName) if (e->section==Entry::MEMBERGRP_SEC) { g_memberGroupDocs=e->brief.stripWhiteSpace(); - e->doc = stripLeadingAndTrailingEmptyLines(e->doc); + e->doc = stripLeadingAndTrailingEmptyLines(e->doc,e->docLine); if (!g_memberGroupDocs.isEmpty() && !e->doc.isEmpty()) { g_memberGroupDocs+="\n\n"; |