From: Daniel Morrison Date: Tue, 11 Nov 2014 01:33:21 +0000 (-0500) Subject: Fix standalones failing to register. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=d08c986a41505e437ee0cf8eae49e928d41137dd;p=chevron.git Fix standalones failing to register. --- 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