From 416678c8350ca1bae1d517fa5922439a0992fd9e Mon Sep 17 00:00:00 2001 From: noah morrison Date: Mon, 10 Nov 2014 22:17:00 -0500 Subject: [PATCH] Fixed set delimiter tags nomming a character --- entei.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.47.3