diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-07-08 13:48:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 13:48:16 (GMT) |
commit | 34c9bac4624c5b94172af4a9d9168a44482fe552 (patch) | |
tree | f6c845ba55ba8010604d073ef3393de2c02fece4 /src | |
parent | 54f758e77fad281c0bcc80c3322cbb1822334b37 (diff) | |
parent | e40b8afa2aef5e42f24bed7f82922230f56aa02a (diff) | |
download | Doxygen-34c9bac4624c5b94172af4a9d9168a44482fe552.zip Doxygen-34c9bac4624c5b94172af4a9d9168a44482fe552.tar.gz Doxygen-34c9bac4624c5b94172af4a9d9168a44482fe552.tar.bz2 |
Merge pull request #7111 from albert-github/feature/issue_7110
issue #7110 URL Encoding for Hyperlinks in PDF
Diffstat (limited to 'src')
-rw-r--r-- | src/latexgen.cpp | 2 | ||||
-rw-r--r-- | src/util.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 6864e74..182583f 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -1381,7 +1381,7 @@ void LatexGenerator::startHtmlLink(const char *url) if (Config_getBool(PDF_HYPERLINKS)) { t << "\\href{"; - t << url; + t << latexFilterURL(url); t << "}"; } t << "{\\texttt{ "; diff --git a/src/util.cpp b/src/util.cpp index e5b9c5c..7107e83 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7082,6 +7082,7 @@ QCString latexFilterURL(const char *s) switch (c) { case '#': t << "\\#"; break; + case '%': t << "\\%"; break; default: t << c; break; |