Skip to content

Commit

Permalink
Update of search from "endless search to 'Character search: criterion.
Browse files Browse the repository at this point in the history
Updated search criterion
Incremented q, as otherwise ';' remained (visible in PDF).
  • Loading branch information
albert-github committed Jan 23, 2015
1 parent 8e44571 commit a0820f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -6500,6 +6500,7 @@ void filterLatexString(FTextStream &t,const char *str,
else
{
t << HtmlEntityMapper::instance()->latex(res);
q++;
p = q;
}
}
Expand Down

0 comments on commit a0820f2

Please sign in to comment.