From 2d6ba3730434e12958ce27d797b43a1540980320 Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Sat, 15 Nov 2014 23:08:39 -0500 Subject: [PATCH] More is finished stuff. --- entei.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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']: -- 2.47.3