From: Daniel Morrison Date: Sun, 16 Nov 2014 05:19:15 +0000 (-0500) Subject: Special handling for 'set delimiter?' X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=1467f1b01f2d235af3013ab87b70a59b240a141c;p=chevron.git Special handling for 'set delimiter?' I don’t understand why, but this helps unit tests pass. --- 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']: