From 1467f1b01f2d235af3013ab87b70a59b240a141c Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Sun, 16 Nov 2014 00:19:15 -0500 Subject: [PATCH] Special handling for 'set delimiter?' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I don’t understand why, but this helps unit tests pass. --- entei.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entei.py b/entei.py index 6f01976..1c7984e 100755 --- a/entei.py +++ b/entei.py @@ -140,7 +140,11 @@ def tokenize(template): literal = literal.rstrip(' ') else: - template = until + '\n' + template + # TODO: Understand this code. + if tag_type == 'set delimiter?': + template = until + else: + template = until + '\n' + template # If we're a tag can't be a standalone elif tag_type in ['variable', 'no escape']: -- 2.47.3