From 6c80429e303c89a9cba83569d65d118f8d48f97c Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 5 Aug 2018 19:23:27 +0200 Subject: Bug 137447 - doesn't allow as visible part? Enable possibility to have image in a `` tag. Will only show in HTML as the `` is only shown in HTML (as documented). --- src/docparser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/docparser.cpp b/src/docparser.cpp index 0cb4ea3..7e050b3 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -146,6 +146,9 @@ struct DocParserContext static QStack g_parserStack; //--------------------------------------------------------------------------- +static void handleImg(DocNode *parent,QList &children,const HtmlAttribList &tagHtmlAttribs); + +//--------------------------------------------------------------------------- static void docParserPushContext(bool saveParamInfo=TRUE) { //QCString indent; @@ -1643,6 +1646,10 @@ reparsetoken: handleStyleLeave(parent,children,DocStyleChange::Small,tokenName); } break; + case HTML_IMG: + if (!g_token->endTag) + handleImg(parent,children,g_token->attribs); + break; default: return FALSE; break; -- cgit v0.12