changeset 129:ed4b7f8ea143

macro.arnica: bug fix for parsers output of None
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 29 Jun 2008 10:08:24 +0200
parents eeee3b6cd853
children 203a44164c8b
files data/plugin/macro/arnica.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/arnica.py	Sun Jun 29 10:06:53 2008 +0200
+++ b/data/plugin/macro/arnica.py	Sun Jun 29 10:08:24 2008 +0200
@@ -28,4 +28,8 @@
             return ap.render(self.formatter)
 
 def execute(macro, args):
-    return '<div class="arnica">' + arnica(macro, args).renderInPage() + '</div>'
+    result = arnica(macro, args).renderInPage()
+    if result:
+        return '<div class="arnica"> %s </div>' % result
+    else:
+         return u''