summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-01-23 19:55:33 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-01-23 19:55:33 (GMT)
commita0820f29e60be1555b5b0c92a975bf334b6f5258 (patch)
tree247fbcc96fafc9d5eb33da46263a56320a5612f8 /src/util.cpp
parent8e44571521391403e8d85f893acb926e021e926b (diff)
downloadDoxygen-a0820f29e60be1555b5b0c92a975bf334b6f5258.zip
Doxygen-a0820f29e60be1555b5b0c92a975bf334b6f5258.tar.gz
Doxygen-a0820f29e60be1555b5b0c92a975bf334b6f5258.tar.bz2
Update of search from "endless search to 'Character search: criterion.
Updated search criterion Incremented q, as otherwise ';' remained (visible in PDF).
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 1bd2ce9..d6869d3 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6483,7 +6483,7 @@ void filterLatexString(FTextStream &t,const char *str,
case '&': // possibility to have a special symbol
q = p;
cnt = 2; // we have to count & and ; as well
- while (*q && *q != ';')
+ while ((*q >= 'a' && *q <= 'z') || (*q >= 'A' && *q <= 'Z') || (*q >= '0' && *q <= '9'))
{
cnt++;
q++;
@@ -6500,6 +6500,7 @@ void filterLatexString(FTextStream &t,const char *str,
else
{
t << HtmlEntityMapper::instance()->latex(res);
+ q++;
p = q;
}
}