diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-10-27 13:03:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-27 13:03:30 (GMT) |
commit | 7cb517eb3c4181c90dd6b366410d1ea3c0cbcb63 (patch) | |
tree | 76833aa88f6b9ec09ba8ca1ddf6877d76a87cf50 /src/util.cpp | |
parent | ecc99f5aa269a624848b9eda30a581067d801086 (diff) | |
parent | 1f849a16671e1c9afff4ee30a5b5a33d271e8684 (diff) | |
download | Doxygen-7cb517eb3c4181c90dd6b366410d1ea3c0cbcb63.zip Doxygen-7cb517eb3c4181c90dd6b366410d1ea3c0cbcb63.tar.gz Doxygen-7cb517eb3c4181c90dd6b366410d1ea3c0cbcb63.tar.bz2 |
Merge pull request #6460 from albert-github/feature/issue_6456
Issue_6456 Using # in links causes errors in PDF generation
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 7371026..c931214 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7026,6 +7026,25 @@ QCString latexEscapePDFString(const char *s) return result.data(); } +QCString latexFilterURL(const char *s) +{ + QGString result; + FTextStream t(&result); + const char *p=s; + char c; + while ((c=*p++)) + { + switch (c) + { + case '#': t << "\\#"; break; + default: + t << c; + break; + } + } + return result.data(); +} + QCString rtfFormatBmkStr(const char *name) { |