diff options
author | albert-github <albert.tests@gmail.com> | 2019-09-02 10:46:52 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-09-02 10:46:52 (GMT) |
commit | 9928ad99b8877702e2abecfdfe183cf961e08452 (patch) | |
tree | 048c546561914e3ae3f22e82b1858acc7e4233fa /src | |
parent | 3ffbbd77dcf450b37d17fb0f1b33754e1af10987 (diff) | |
download | Doxygen-9928ad99b8877702e2abecfdfe183cf961e08452.zip Doxygen-9928ad99b8877702e2abecfdfe183cf961e08452.tar.gz Doxygen-9928ad99b8877702e2abecfdfe183cf961e08452.tar.bz2 |
Backslash in href.
When having a backslash in a href like:
```
<a href="C:\boost">`C:\boost`</a>
```
we get in LaTeX the error:
```
(aa_8h.tex
! Undefined control sequence.
<argument> C:\boost
l.6 \href{C:\boost}
{\texttt{ {\ttfamily C\+:\textbackslash{}boost}}}
```
this can be overcome by escaping the backslash.
Note this is just an example, for an URI actually forward slashes should be used. It is just about the backslash not generating an error.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 3e49384..8816de1 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7164,6 +7164,7 @@ QCString latexFilterURL(const char *s) { case '#': t << "\\#"; break; case '%': t << "\\%"; break; + case '\\': t << "\\\\"; break; default: t << c; break; |