summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-09-02 10:46:52 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-09-02 10:46:52 (GMT)
commit9928ad99b8877702e2abecfdfe183cf961e08452 (patch)
tree048c546561914e3ae3f22e82b1858acc7e4233fa /src/util.cpp
parent3ffbbd77dcf450b37d17fb0f1b33754e1af10987 (diff)
downloadDoxygen-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/util.cpp')
-rw-r--r--src/util.cpp1
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;