Skip to content

Commit ab9192a

Browse files
committed
issue doxygen#11742 Handling \copydoc inside table
The end tag `</td>` was repeated when converting `\copydoc` into `\copybrief` and `\copydetails` resulting in a warning and an incorrect table.
1 parent ce54e3f commit ab9192a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/commentscan.l

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2807,6 +2807,16 @@ STopt [^\n@\\]*
28072807
addOutput(yyscanner,"\n");
28082808
BEGIN(Comment);
28092809
}
2810+
<CopyDoc>"<"[/]?{TABLEDEL}">" {
2811+
if (yyextra->braceCount==0)
2812+
{
2813+
setOutput(yyscanner,OutputDoc);
2814+
addOutput(yyscanner," \\ilinebr\\ilinebr\\copydetails ");
2815+
addOutput(yyscanner,yyextra->copyDocArg);
2816+
addOutput(yyscanner,yytext);
2817+
BEGIN(Comment);
2818+
}
2819+
}
28102820
<CopyDoc>{DOCNL} {
28112821
if (*yytext=='\n') yyextra->lineNr++;
28122822
if (yyextra->braceCount==0)
@@ -2821,7 +2831,7 @@ STopt [^\n@\\]*
28212831
<CopyDoc>{LC} { // line continuation
28222832
yyextra->lineNr++;
28232833
}
2824-
<CopyDoc>[^@\\\n()]+ { // non-special characters
2834+
<CopyDoc>[^@\\\n()<]+ { // non-special characters
28252835
yyextra->copyDocArg+=yytext;
28262836
addOutput(yyscanner,yytext);
28272837
}

0 commit comments

Comments
 (0)