Merge pull request #137 from chadvoegele/master

Keep percent signs if not followed by {} block.
This commit is contained in:
Giuseppe 2015-10-10 16:00:40 +02:00
commit b331ee3927
1 changed files with 2 additions and 1 deletions

View File

@ -485,7 +485,8 @@ parse (char *text)
if (*p == '\0' || *p == '\n')
return;
if (*p == '%' && p++ && *p == '{' && (block_end = strchr(p++, '}'))) {
if (p[0] == '%' && p[1] == '{' && (block_end = strchr(p++, '}'))) {
p++;
while (p < block_end) {
while (isspace(*p))
p++;