From d08c986a41505e437ee0cf8eae49e928d41137dd Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Mon, 10 Nov 2014 20:33:21 -0500 Subject: [PATCH] Fix standalones failing to register. --- entei.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entei.py b/entei.py index 3941172..7f7c6a0 100755 --- a/entei.py +++ b/entei.py @@ -77,7 +77,7 @@ def tokenize(template): literal = grab_literal() if literal != '': - if not literal.isspace(): + if literal.find('\n') != -1 or is_standalone: padding = literal.split('\n')[-1] if padding.isspace() or padding == '': is_standalone = True -- 2.47.3