summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-12-31 09:53:25 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2017-12-31 09:53:25 (GMT)
commit232c85c6c58a02c3216e1f5af3728d3d2db908c2 (patch)
treed193220535b2c0e3d959c8237302e3c97b54b802 /src/util.cpp
parent9e6d6b696388bf3375ed1a8b92ab79ccad21c3a7 (diff)
parentd59ed22f114398d74d5c3fd1445a7901d26ff93a (diff)
downloadDoxygen-232c85c6c58a02c3216e1f5af3728d3d2db908c2.zip
Doxygen-232c85c6c58a02c3216e1f5af3728d3d2db908c2.tar.gz
Doxygen-232c85c6c58a02c3216e1f5af3728d3d2db908c2.tar.bz2
Merge branch 'feature/bug_783134' of https://github.com/albert-github/doxygen into albert-github-feature/bug_783134
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index f9d8a09..ab7079e 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -47,6 +47,7 @@
#include "searchindex.h"
#include "doxygen.h"
#include "textdocvisitor.h"
+#include "latexdocvisitor.h"
#include "portable.h"
#include "parserintf.h"
#include "bufstr.h"
@@ -6725,6 +6726,12 @@ void filterLatexString(FTextStream &t,const char *str,
case '{': t << "\\{"; break;
case '}': t << "\\}"; break;
case '_': t << "\\_"; break;
+ case '&': t << "\\&"; break;
+ case '%': t << "\\%"; break;
+ case '#': t << "\\#"; break;
+ case '$': t << "\\$"; break;
+ case '^': (usedTableLevels>0) ? t << "\\string^" : t << (char)c; break;
+ case '~': (usedTableLevels>0) ? t << "\\string~" : t << (char)c; break;
case ' ': if (keepSpaces) t << "~"; else t << ' ';
break;
default: