From f9208e8581b1173e9e67a991a2538e3758e8fa28 Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 30 Dec 2015 20:28:50 +0100 Subject: [PATCH] Simplify test --- patacrep/content/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/content/__init__.py b/patacrep/content/__init__.py index 85f6b7a4..a2268ee7 100755 --- a/patacrep/content/__init__.py +++ b/patacrep/content/__init__.py @@ -223,7 +223,7 @@ def render(context, content): rendered += elem.render(context) + EOL previous = elem - if isinstance(last, ContentItem): + if last is not None: rendered += last.end_block(context) + EOL return rendered