summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-08-05 09:55:25 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-08-05 09:55:25 (GMT)
commit43e606f185c7fb334062521eff4905d047f78503 (patch)
treebf5e0d7fa0599a38575f9f84d694dafa02116f5b
parent9ba8bd85999fa7423eb5b44c680e72ad2e9c31bf (diff)
downloadDoxygen-43e606f185c7fb334062521eff4905d047f78503.zip
Doxygen-43e606f185c7fb334062521eff4905d047f78503.tar.gz
Doxygen-43e606f185c7fb334062521eff4905d047f78503.tar.bz2
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
-rw-r--r--src/xmldocvisitor.cpp2
1 files changed, 1 insertions, 1 deletions
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) << "\"";
}