From: Daniel Morrison Date: Sun, 16 Nov 2014 04:08:39 +0000 (-0500) Subject: More is finished stuff. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=2d6ba3730434e12958ce27d797b43a1540980320;p=chevron.git More is finished stuff. --- diff --git a/entei.py b/entei.py index 67b471f..72a402f 100755 --- a/entei.py +++ b/entei.py @@ -138,20 +138,7 @@ def tokenize(template): literal = literal.rstrip(' ') else: - # TODO: this is messy - - # Otherwise we aren't a standalone - is_standalone = False - - # If we're a set delimiter tag - if tag_type == 'set delimiter?': - # Then step back the length of the stuff we grabbed - template.seek(template.tell() - len(until)) - else: - # Otherwise step back the length plus one - template.seek(template.tell() - (len(until) + 1)) - - # I don't know why there's a difference... + template = until + '\n' + template # If we're a tag can't be a standalone elif tag_type in ['variable', 'no escape']: