Permalink
Browse files

Update of search from "endless search to 'Character search: criterion.

Updated search criterion
Incremented q, as otherwise ';' remained (visible in PDF).
  • Loading branch information...
albert-github committed Jan 23, 2015
1 parent 8e44571 commit a0820f29e60be1555b5b0c92a975bf334b6f5258
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/util.cpp
View
@@ -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;
}
}

0 comments on commit a0820f2

Please sign in to comment.