Skip to content

Commit a2f2036

Browse files
committed
issue #10955 HTML comment affects output
Adjusted handling of embedded newlines in HTML comment and kept line counting correct (for warnings etc.).
1 parent 7673d22 commit a2f2036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commentscan.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,8 @@ STopt [^\n@\\]*
11621162
<HtmlComment>{DOCNL} {
11631163
if (*yytext=='\n')
11641164
{
1165-
addOutput(yyscanner,*yytext);
11661165
yyextra->lineNr++;
1166+
addOutput(yyscanner," \\iline "+QCString().setNum(yyextra->lineNr)+" ");
11671167
}
11681168
}
11691169
<HtmlComment>[^\\\n\-]+ { // ignore unimportant characters

0 commit comments

Comments
 (0)