From a402beb8e0c0c2fcaaf4b6317d31d52a767e930d Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 7 Jan 2021 18:27:04 +0100 Subject: 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. --- src/doctokenizer.l | 4 ++++ 1 file changed, 4 insertions(+) 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 [\-+0-9] | {WORD1} | {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 [\-+0-9] | {WORD1} | {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]; -- cgit v0.12