diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-12-16 20:08:24 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-12-16 20:08:24 (GMT) |
commit | fb864720e5a808a6e9052b2cc5a1a942cb7665ab (patch) | |
tree | 0de7715d3a2308f07d2c97970d88def415c52ae4 /src/xmlgen.cpp | |
parent | a641157ea8fc582d539e35bed962018c58c0d407 (diff) | |
download | Doxygen-fb864720e5a808a6e9052b2cc5a1a942cb7665ab.zip Doxygen-fb864720e5a808a6e9052b2cc5a1a942cb7665ab.tar.gz Doxygen-fb864720e5a808a6e9052b2cc5a1a942cb7665ab.tar.bz2 |
Release-1.3-rc2
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r-- | src/xmlgen.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index bb73ca5..c1574eb 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -53,6 +53,16 @@ inline void writeXMLString(QTextStream &t,const char *s) t << convertToXML(s); } +inline void writeXMLCodeString(QTextStream &t,const char *s) +{ + char c; + while ((c=*s++)) + { + if (c==' ') t << "<sp/>"; else t << c; + } +} + + static void writeXMLHeader(QTextStream &t) { QCString dtdName = Config_getString("XML_DTD"); @@ -178,7 +188,7 @@ class XMLCodeGenerator : public BaseCodeDocInterface m_t << "<highlight class=\"normal\">"; m_normalHLNeedStartTag=FALSE; } - writeXMLString(m_t,text); + writeXMLCodeString(m_t,text); } void writeCodeLink(const char *ref,const char *file, const char *anchor,const char *text) |