diff options
author | albert-github <albert.tests@gmail.com> | 2017-05-28 11:14:50 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2017-05-28 11:14:50 (GMT) |
commit | d59ed22f114398d74d5c3fd1445a7901d26ff93a (patch) | |
tree | 6b58e7037c64c4a14d07f907b05a6e2b18e26750 /src/util.cpp | |
parent | 9b7b33994f6443c26146837ba13dff94e5eba998 (diff) | |
download | Doxygen-d59ed22f114398d74d5c3fd1445a7901d26ff93a.zip Doxygen-d59ed22f114398d74d5c3fd1445a7901d26ff93a.tar.gz Doxygen-d59ed22f114398d74d5c3fd1445a7901d26ff93a.tar.bz2 |
Bug 783134 - LaTeX output for \tparam block fails to compile when it contains a \code block
General problem regarding having a code / verbatim section inside a table.
Besides handling of the $ some other characters need special handling as well as the \n.
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index e44f825..02be332 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" @@ -6655,6 +6656,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: |