summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-08-24 08:56:38 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-08-24 08:56:38 (GMT)
commit1f849a16671e1c9afff4ee30a5b5a33d271e8684 (patch)
tree61a428413af2b6b0d89b3467d83365427f427b31 /src/latexgen.cpp
parent94a52469b177703d3e0d94bed6c4a48bddba18cb (diff)
downloadDoxygen-1f849a16671e1c9afff4ee30a5b5a33d271e8684.zip
Doxygen-1f849a16671e1c9afff4ee30a5b5a33d271e8684.tar.gz
Doxygen-1f849a16671e1c9afff4ee30a5b5a33d271e8684.tar.bz2
Issue_6456 Using # in links causes errors in PDF generation
- The # sign in an URL needs to be escaped as longtabu reads the table body as the argument to a command, so the self-escaping mechanism of \href cannot work (from https://tex.stackexchange.com/questions/447461/having-a-hash-sign-in-href-in-a-longtabu-cell) - a regression regarding the change from `\tt` to `\texttt` (needed `{ ... }` as `\href` has 2 arguments )
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 474d368..6d399c5 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -1369,12 +1369,12 @@ void LatexGenerator::startHtmlLink(const char *url)
t << url;
t << "}";
}
- t << "\\texttt{ ";
+ t << "{\\texttt{ ";
}
void LatexGenerator::endHtmlLink()
{
- t << "}";
+ t << "}}";
}
//void LatexGenerator::writeMailLink(const char *url)