From f3a396295800e17896bab0cf2c17b9d6d433c3b3 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 26 Aug 2021 13:38:06 +0200 Subject: [PATCH] Issue #8734 @note with @parblock within a table data cell breaks the HTML output A `\endparblock` should not end a table cell but be handled just like a normal end of a paragraph. --- src/docparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docparser.cpp b/src/docparser.cpp index 2aa20cbc4c2..d09b70a22e0 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -3281,7 +3281,7 @@ int DocHtmlCell::parse() if (retval==TK_HTMLTAG) { int tagId=Mappers::htmlTagMapper->map(m_parser.context.token->name); - if (tagId==HTML_TD && m_parser.context.token->endTag) // found tag + if (tagId==HTML_TD && m_parser.context.token->endTag) // found tag { retval=TK_NEWPARA; // ignore the tag } @@ -3291,7 +3291,7 @@ int DocHtmlCell::parse() } } } - while (retval==TK_NEWPARA); + while ((retval==TK_NEWPARA) || (retval==RetVal_EndParBlock)); if (par) par->markLast(); DBG(("DocHtmlCell::parse() end\n"));