Fix Bug 583758, added a bit to the Inkscape help text saying that groups aren't collapsed if IDs are also not stripped.
+
Fix Bug 583458, another typo in the Inkscape help tab.
+
Fix Bug 594930, In a <switch>, require one level of <g> if there was a <g> in the file already. Otherwise, only the first subelement of the <g> is chosen and rendered.
+
Fix Bug 576958, "Viewbox option doesn't work when units are set", when renderer workarounds are disabled.
+
Added many options: --remove-metadata, --quiet, --enable-comment-stripping, --shorten-ids, --renderer-workaround.
diff --git a/scour.py b/scour.py
index 161b45c..6c50c786 100755
--- a/scour.py
+++ b/scour.py
@@ -4,6 +4,7 @@
# Scour
#
# Copyright 2010 Jeff Schiller
+# Copyright 2010 Louis Simard
#
# This file is part of Scour, http://www.codedread.com/scour/
#
@@ -1328,12 +1329,24 @@ def repairStyle(node, options):
del styleMap['display']
num += 1
- # overflow: visible or overflow specified on element other than svg, marker, pattern
if styleMap.has_key('overflow') :
- if styleMap['overflow'] == 'visible' or node.nodeName in ['svg','marker','pattern']:
+ # overflow specified on element other than svg, marker, pattern
+ if not node.nodeName in ['svg','marker','pattern']:
del styleMap['overflow']
num += 1
-
+ # it is a marker, pattern or svg
+ # as long as this node is not the document