diff options
author | albert-github <albert.tests@gmail.com> | 2019-09-19 12:35:32 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-09-19 12:35:32 (GMT) |
commit | c35960af3b0b867cbcd31141e94fe1573ad2bcc0 (patch) | |
tree | 94285f1d55e978f9f090e5e4f57af41f3d401108 /src/util.cpp | |
parent | c692bd33f9576ce7493f4e83a1510a2f8e17cdbe (diff) | |
download | Doxygen-c35960af3b0b867cbcd31141e94fe1573ad2bcc0.zip Doxygen-c35960af3b0b867cbcd31141e94fe1573ad2bcc0.tar.gz Doxygen-c35960af3b0b867cbcd31141e94fe1573ad2bcc0.tar.bz2 |
issue #7271 Tilde in preprocessor macro disappears in latex
In pre part always use `\string~` for `~` otherwise it will be translated to a space.
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 9fe7bba..85536ca 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6945,7 +6945,7 @@ void filterLatexString(FTextStream &t,const char *str, 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 '~': t << "\\string~"; break; case ' ': if (keepSpaces) t << "~"; else t << ' '; break; default: |