summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-10-27 13:07:10 (GMT)
committerGitHub <noreply@github.com>2018-10-27 13:07:10 (GMT)
commit82149767a751243875d0d50cf0a31ee9714ed100 (patch)
treedcfdc8f1edbbdd8fa67c26ac4fe9d4e762484296 /src/commentscan.l
parent07f2d080edd9160ed1e367c898c3f2626d7b7953 (diff)
parent09af3e03a55a5b02ebb6254c39a09877c8bd671b (diff)
downloadDoxygen-82149767a751243875d0d50cf0a31ee9714ed100.zip
Doxygen-82149767a751243875d0d50cf0a31ee9714ed100.tar.gz
Doxygen-82149767a751243875d0d50cf0a31ee9714ed100.tar.bz2
Merge pull request #6439 from albert-github/feature/bug_748927
Bug 748927 - Navigation incorrect with escaped symbols
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index ac83729..1d84917 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -1589,8 +1589,12 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
<PageDocArg1>. { // ignore other stuff
}
<PageDocArg2>.*"\n" { // second argument; page title
- yyLineNr++;
- current->args = yytext;
+ yyLineNr++;
+ // bug 748927
+ QCString tmp = yytext;
+ tmp = substitute(substitute(tmp,"@<","&lt;"),"@>","&gt;");
+ tmp = substitute(substitute(tmp,"\\<","&lt;"),"\\>","&gt;");
+ current->args = tmp;
addOutput('\n');
BEGIN( Comment );
}