Skip to content

Commit ea75ea2

Browse files
authored
Merge pull request doxygen#11180 from albert-github/feature/bug_endspace_brief
Output when brief description ends with multiple spaces
2 parents 4c07d28 + 30a0f87 commit ea75ea2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/commentscan.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4766,6 +4766,7 @@ bool CommentScanner::parseCommentBlock(/* in */ OutlineParserInterface *pars
47664766
}
47674767

47684768
yyextra->current->doc=stripLeadingAndTrailingEmptyLines(yyextra->current->doc,yyextra->current->docLine);
4769+
yyextra->current->brief=stripLeadingAndTrailingEmptyLines(yyextra->current->brief,yyextra->current->docLine);
47694770

47704771
if (yyextra->current->section.isFileDoc() && yyextra->current->doc.isEmpty())
47714772
{

src/util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5389,6 +5389,7 @@ QCString stripLeadingAndTrailingEmptyLines(const QCString &s,int &docLine)
53895389
c=*p;
53905390
if (c==' ' || c=='\t' || c=='\r') b--,p--;
53915391
else if (c=='r' && b>=7 && qstrncmp(p-7,"\\ilinebr",8)==0) bi=b-7,b-=8,p-=8;
5392+
else if (c=='>' && b>=11 && qstrncmp(p-11,"\\ilinebr<br>",12)==0) bi=b-11,b-=12,p-=12;
53925393
else if (c=='\n') bi=b,b--,p--;
53935394
else break;
53945395
}

0 commit comments

Comments
 (0)