summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-12-16 20:08:24 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-12-16 20:08:24 (GMT)
commit1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e (patch)
tree0de7715d3a2308f07d2c97970d88def415c52ae4 /src/xmlgen.cpp
parent6204682e5f23d154bade70d60f5989424f057ce6 (diff)
downloadDoxygen-1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e.zip
Doxygen-1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e.tar.gz
Doxygen-1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e.tar.bz2
Release-1.3-rc2
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp12
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)