From: noah morrison Date: Tue, 11 Nov 2014 03:17:00 +0000 (-0500) Subject: Fixed set delimiter tags nomming a character X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=416678c8350ca1bae1d517fa5922439a0992fd9e;p=chevron.git Fixed set delimiter tags nomming a character --- diff --git a/entei.py b/entei.py index fc08672..6f570da 100755 --- a/entei.py +++ b/entei.py @@ -126,7 +126,10 @@ def tokenize(template): if template.is_finished: template.is_finished = False - template.seek(template.tell() - (len(until) + 1)) + if tag_type == 'set delimiter?': + template.seek(template.tell() - len(until)) + else: + template.seek(template.tell() - (len(until) + 1)) if literal != '': yield ('literal', literal)