diff --git a/scour/scour.py b/scour/scour.py index 82b7f5b..8effdb1 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -1819,7 +1819,7 @@ def repairStyle(node, options): if propName in svgAttributes: node.setAttribute(propName, styleMap[propName]) del styleMap[propName] - + _setStyle(node, styleMap) # recurse for our child elements @@ -3999,7 +3999,7 @@ _option_group_optimization.add_option("--disable-style-to-xml", help="won't convert styles into XML attributes") _option_group_optimization.add_option("--style", action="store", type="string", dest="style_type", default="none", metavar="TYPE", - help="style type (overrides style-to-xml): none, preserve, inline,"\ + help="style type (overrides style-to-xml): none, preserve, inline," "attributes (default: %none)") _option_group_optimization.add_option("--disable-group-collapsing", action="store_false", dest="group_collapse", default=True, diff --git a/test_scour.py b/test_scour.py index ee12efd..4cd82a1 100755 --- a/test_scour.py +++ b/test_scour.py @@ -2217,7 +2217,7 @@ class AttrToStyle(unittest.TestCase): def runTest(self): doc = scourXmlFile('unittests/attr-to-style.svg', - parse_args(['--style=inline'])) + parse_args(['--style=inline'])) line = doc.getElementsByTagName('line')[0] self.assertEqual(line.getAttribute('stroke'), '') self.assertEqual(line.getAttribute('marker-start'), '') @@ -2237,7 +2237,7 @@ class StylePreserve(unittest.TestCase): def runTest(self): doc = scourXmlFile('unittests/attr-to-style.svg', - parse_args(['--style=preserve'])) + parse_args(['--style=preserve'])) # First line uses attributes. line = doc.getElementsByTagName('line')[0]