summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-15 09:19:55 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-15 09:19:55 (GMT)
commitb272b4b5077873457a0f6b517ac799f4a5f8c951 (patch)
treebf707b24a4a6d2b2542319349dd7df06ccd58074 /src/util.cpp
parent392b48a25e4315528fbb11a5a1bfc9f2bca791c0 (diff)
downloadDoxygen-b272b4b5077873457a0f6b517ac799f4a5f8c951.zip
Doxygen-b272b4b5077873457a0f6b517ac799f4a5f8c951.tar.gz
Doxygen-b272b4b5077873457a0f6b517ac799f4a5f8c951.tar.bz2
Bug 733722 - XML Output invalid: XML_PROGRAMLISTING=YES copies Unicode form feed character (U+000C) to XML files
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 0049098..a524922 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -5605,6 +5605,11 @@ QCString convertToXML(const char *s)
case '&': growBuf.addStr("&amp;"); break;
case '\'': growBuf.addStr("&apos;"); break;
case '"': growBuf.addStr("&quot;"); break;
+ case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8:
+ case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18:
+ case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26:
+ case 27: case 28: case 29: case 30: case 31:
+ break; // skip invalid XML characters (see http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char)
default: growBuf.addChar(c); break;
}
}