changeset 537:61621f711b18

span macro: avoid empty style (if all was crap)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 22 Jun 2010 17:18:59 +0200
parents c937dca76e96
children 6cb5b60276b1
files data/plugin/macro/span.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/span.py	Tue Jun 22 17:14:34 2010 +0200
+++ b/data/plugin/macro/span.py	Tue Jun 22 17:18:59 2010 +0200
@@ -123,8 +123,9 @@
             attrs[key] = value
 
     if SUPPORT_STYLE_ATTR:
+        style = make_style_safe(style)
         if style:
-            attrs['style'] = make_style_safe(style)
+            attrs['style'] = style
 
     if attrs:
         return macro.formatter.span(True, **attrs)