diff options
author | albert-github <albert.tests@gmail.com> | 2020-05-09 14:48:00 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-05-09 14:48:00 (GMT) |
commit | 10e0ee4d13ee14468f27bc64438338631d8fd61b (patch) | |
tree | 2b1f312db90ea7867fe7c1663cca983bc82e2442 /src/util.cpp | |
parent | 7a34f3b64b068c83bb9409d9d0774726a0fe2912 (diff) | |
download | Doxygen-10e0ee4d13ee14468f27bc64438338631d8fd61b.zip Doxygen-10e0ee4d13ee14468f27bc64438338631d8fd61b.tar.gz Doxygen-10e0ee4d13ee14468f27bc64438338631d8fd61b.tar.bz2 |
issue #7762 C# mode completely broken
In case a `#` is used in the path this is not escaped and this gives a problem in label names for LaTeX and in file references for HTML>
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index f16a28e..2b82afb 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -4872,6 +4872,7 @@ QCString escapeCharsInString(const char *name,bool allowDots,bool allowUnderscor case '@': growBuf.addStr("_0d"); break; case ']': growBuf.addStr("_0e"); break; case '[': growBuf.addStr("_0f"); break; + case '#': growBuf.addStr("_0g"); break; default: if (c<0) { @@ -4986,6 +4987,7 @@ QCString unescapeCharsInString(const char *s) case 'd': result+='@'; p+=2; break; // _0d -> '@' case 'e': result+=']'; p+=2; break; // _0e -> ']' case 'f': result+='['; p+=2; break; // _0f -> '[' + case 'g': result+='#'; p+=2; break; // _0g -> '#' default: // unknown escape, just pass underscore character as-is result+=c; break; |