From 43e606f185c7fb334062521eff4905d047f78503 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 5 Aug 2018 11:55:25 +0200 Subject: Include height item in XML output When width and height are given with the `\image` command only the `width=` is placed in the output. contrary to e.g. HTML. This has been corrected. Based on: https://stackoverflow.com/questions/38778067/doxygen-image-tag-size-specification-syntax --- src/xmldocvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp index 93765b1..3a656c9 100644 --- a/src/xmldocvisitor.cpp +++ b/src/xmldocvisitor.cpp @@ -65,7 +65,7 @@ static void visitPreStart(FTextStream &t, const char *cmd, const bool doCaption, { t << " width=\"" << convertToXML(width) << "\""; } - else if (!height.isEmpty()) + if (!height.isEmpty()) { t << " height=\"" << convertToXML(height) << "\""; } -- cgit v0.12