Author: jmorliaguet
Date: Wed Mar 22 15:44:28 2006
New Revision: 2687

Modified:
   cpsskins/branches/jmo-perspectives/ui/default/filters/style/__init__.py
Log:

- test fix / don't display empty css properties



Modified: 
cpsskins/branches/jmo-perspectives/ui/default/filters/style/__init__.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/default/filters/style/__init__.py     
(original)
+++ cpsskins/branches/jmo-perspectives/ui/default/filters/style/__init__.py     
Wed Mar 22 15:44:28 2006
@@ -140,6 +140,8 @@
         for k, v in style.items():
             s = k.split(' ')
             sel = ' '.join(s[1:])
+            if not v:
+                continue
             props = ';'.join(['%s:%s' % (p, r) for p, r in v.items()])
             rendered.append('%s.%s %s {%s}' % (s[0], style_id, sel, props))
         return '\n'.join(rendered)
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to