Merge pull request #137 from chadvoegele/master
Keep percent signs if not followed by {} block.
This commit is contained in:
commit
b331ee3927
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user