summaryrefslogtreecommitdiffstats
path: root/src/rtfgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
commit5f3d8499c05e9eb512b72d296073041ac4da6f4d (patch)
tree0653bda058f25d9420dd6ddcaf4edc28781a8aa4 /src/rtfgen.cpp
parenta0924f7d469a42ab962763ce34ea5fabc73da9d7 (diff)
downloadDoxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.zip
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.gz
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.bz2
Release-1.5.8-20090129
Diffstat (limited to 'src/rtfgen.cpp')
-rw-r--r--src/rtfgen.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp
index 615d4d2..e97c041 100644
--- a/src/rtfgen.cpp
+++ b/src/rtfgen.cpp
@@ -2619,7 +2619,10 @@ void RTFGenerator::postProcess(QByteArray &a)
for (i=0;i<a.size();i++)
{
unsigned char c = (unsigned char)a.at(i);
- if (c>0x80 || mbFlag)
+
+ // treat characters > 0x80 as multibyte characters, except when they
+ // are control characters
+ if (c>0x80 || (mbFlag && c!='\\' && c!='{' && c!='}'))
{
char s[10];
sprintf(s,"\\'%X",c);