From e3075bd04587f48cd4c53aa5aee70f7a4c727b93 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sun, 1 Sep 2013 12:52:21 -0400 Subject: extensions. simplestyle.py. allow spaces at end of style attribute (Bug 1216859) Fixed bugs: - https://launchpad.net/bugs/1216859 (bzr r12496) --- share/extensions/simplestyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/extensions/simplestyle.py b/share/extensions/simplestyle.py index c97d57e75..99b5938dd 100755 --- a/share/extensions/simplestyle.py +++ b/share/extensions/simplestyle.py @@ -176,7 +176,7 @@ def parseStyle(s): if s is None: return {} else: - return dict([[x.strip() for x in i.split(":")] for i in s.split(";") if len(i)]) + return dict([[x.strip() for x in i.split(":")] for i in s.split(";") if len(i.strip())]) def formatStyle(a): """Format an inline style attribute from a dictionary""" -- cgit v1.2.3