diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-22 10:14:03 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-22 10:14:03 (GMT) |
commit | 223e7de6478019c8eebcfd87085fe22d3bfeec0e (patch) | |
tree | 2297b1d3beea204dfe48f39e41a95286f5581e8e /src/xmldocvisitor.cpp | |
parent | 67e8d626fec0c4365106902dcd16b988b8cceb10 (diff) | |
download | Doxygen-223e7de6478019c8eebcfd87085fe22d3bfeec0e.zip Doxygen-223e7de6478019c8eebcfd87085fe22d3bfeec0e.tar.gz Doxygen-223e7de6478019c8eebcfd87085fe22d3bfeec0e.tar.bz2 |
various fixes and restructuring
Diffstat (limited to 'src/xmldocvisitor.cpp')
-rw-r--r-- | src/xmldocvisitor.cpp | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp index afab1d3..65711ab 100644 --- a/src/xmldocvisitor.cpp +++ b/src/xmldocvisitor.cpp @@ -45,7 +45,7 @@ static void visitPreStart(FTextStream &t, const char *cmd, const bool doCaption, const QCString &height) { QCString tmpStr; - + t << "<" << cmd; if (writeType) { @@ -65,27 +65,12 @@ static void visitPreStart(FTextStream &t, const char *cmd, const bool doCaption, } if (!width.isEmpty()) { - tmpStr = width; - tmpStr = tmpStr.replace(QRegExp("min *width"),"minwidth"); - tmpStr = tmpStr.replace(QRegExp("max *width"),"maxwidth"); - tmpStr = tmpStr.replace(QRegExp("="),"=\""); - tmpStr = tmpStr.replace(QRegExp(","),"\" ") + "\""; - tmpStr = tmpStr.replace(QRegExp("\"\""),"\""); - tmpStr = tmpStr.replace(QRegExp("\\"),"\\\\"); - t << " " << tmpStr; + t << " width=\"" << convertToXML(width) << "\""; } - if (!height.isEmpty()) + else if (!height.isEmpty()) { - tmpStr = height; - tmpStr = tmpStr.replace(QRegExp("min *height"),"minheight"); - tmpStr = tmpStr.replace(QRegExp("max *height"),"maxheight"); - tmpStr = tmpStr.replace(QRegExp("="),"=\""); - tmpStr = tmpStr.replace(QRegExp(","),"\" ") + "\""; - tmpStr = tmpStr.replace(QRegExp("\"\""),"\""); - tmpStr = tmpStr.replace(QRegExp("\\"),"\\\\"); - t << " " << tmpStr; + t << " height=\"" << convertToXML(height) << "\""; } - if (doCaption) { t << " caption=\""; |