summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-03-05 19:35:16 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-03-05 19:35:16 (GMT)
commitd4ab02c2da7df472bebbf2724419ba00f2de229c (patch)
tree3c3eb2566bbb4daebfaf9d267f4778fd3018b87a /src/util.cpp
parent537a1c67f316c5a9d2d4542e94a4ace439a78b3a (diff)
downloadDoxygen-d4ab02c2da7df472bebbf2724419ba00f2de229c.zip
Doxygen-d4ab02c2da7df472bebbf2724419ba00f2de229c.tar.gz
Doxygen-d4ab02c2da7df472bebbf2724419ba00f2de229c.tar.bz2
Bug 762982 - regression, Unescaped percent sign in doxygen output
Besides the fact that the % sign was not escaped also the & was missing and had to be escaped as well.
Diffstat (limited to 'src/util.cpp')
-rwxr-xr-xsrc/util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 91f83ae..ab45798 100755
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6738,6 +6738,8 @@ QCString latexEscapePDFString(const char *s)
case '{': t << "\\{"; break;
case '}': t << "\\}"; break;
case '_': t << "\\_"; break;
+ case '%': t << "\\%"; break;
+ case '&': t << "\\&"; break;
default:
t << c;
break;