summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-08-05 17:23:27 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-08-05 17:23:27 (GMT)
commit6c80429e303c89a9cba83569d65d118f8d48f97c (patch)
treeaf1e0d952f5d927d7c9248e740a586e2288d10bb /src/docparser.cpp
parent9ba8bd85999fa7423eb5b44c680e72ad2e9c31bf (diff)
downloadDoxygen-6c80429e303c89a9cba83569d65d118f8d48f97c.zip
Doxygen-6c80429e303c89a9cba83569d65d118f8d48f97c.tar.gz
Doxygen-6c80429e303c89a9cba83569d65d118f8d48f97c.tar.bz2
Bug 137447 - <a href> doesn't allow <img> as visible part?
Enable possibility to have image in a `<a>` tag. Will only show in HTML as the `<img>` is only shown in HTML (as documented).
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp7
1 files changed, 7 insertions, 0 deletions
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<DocParserContext> g_parserStack;
//---------------------------------------------------------------------------
+static void handleImg(DocNode *parent,QList<DocNode> &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;