summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-01-07 17:27:04 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-01-07 17:27:04 (GMT)
commita402beb8e0c0c2fcaaf4b6317d31d52a767e930d (patch)
tree28136c73781fd45e436c0c0a48e22b8d28516f2e /src/doctokenizer.l
parent3f4717ec5583dde8116205e1045095158ab56c15 (diff)
downloadDoxygen-a402beb8e0c0c2fcaaf4b6317d31d52a767e930d.zip
Doxygen-a402beb8e0c0c2fcaaf4b6317d31d52a767e930d.tar.gz
Doxygen-a402beb8e0c0c2fcaaf4b6317d31d52a767e930d.tar.bz2
issue #8311 Markdown table: double-quote ruins the output
In case of an artificial line break and the string starting with a `"` reject the rule, so lonely `"` are handled properly.
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 330db00..36da1d7 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -755,6 +755,8 @@ RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revisio
<St_Para,St_Text>[\-+0-9] |
<St_Para,St_Text>{WORD1} |
<St_Para,St_Text>{WORD2} { /* function call */
+ QCString tmp = yytext;
+ if (tmp.contains("\\ilinebr")>0) REJECT;
lineCount(yytext,yyleng);
if (yytext[0]=='%') // strip % if present
g_token->name = &yytext[1];
@@ -1042,6 +1044,8 @@ RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revisio
<St_TitleN>[\-+0-9] |
<St_TitleN>{WORD1} |
<St_TitleN>{WORD2} { /* word */
+ QCString tmp = yytext;
+ if (tmp.contains("\\ilinebr")>0) REJECT;
lineCount(yytext,yyleng);
if (yytext[0]=='%') // strip % if present
g_token->name = &yytext[1];