From 78501877b197e44edf37a46bb7246e32998d41be Mon Sep 17 00:00:00 2001 From: noah morrison Date: Tue, 11 Nov 2014 21:44:22 -0500 Subject: [PATCH] Fixed partial standalones Partial standalone tags do not have the whitespace stripped from them --- entei.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entei.py b/entei.py index 3e9872a..6de10d4 100755 --- a/entei.py +++ b/entei.py @@ -117,9 +117,12 @@ def tokenize(template): if is_standalone and tag_type not in ['variable', 'no escape']: until = grab_literal('\n') + if until.isspace() or until == '': is_standalone = True - literal = literal.rstrip(' ') + + if tag_type != 'partial': + literal = literal.rstrip(' ') else: is_standalone = False -- 2.47.3