Fix Bug 411062: typo of 'true'. Modify unit test to cover exercising the code. Update testscour.py for new indent_type option.
This commit is contained in:
parent
e17d3b8526
commit
5f5c8a431d
3 changed files with 8 additions and 3 deletions
5
scour.py
5
scour.py
|
|
@ -30,7 +30,8 @@
|
|||
# * Collapse all group based transformations
|
||||
|
||||
# Even more ideas here: http://esw.w3.org/topic/SvgTidy
|
||||
# * analysis of path elements to see if rect can be used instead?
|
||||
# * analysis of path elements to see if rect can be used instead? (must also need to look
|
||||
# at rounded corners)
|
||||
# * removal of unused attributes in groups:
|
||||
# <g fill="blue" ...>
|
||||
# <rect fill="red" ... />
|
||||
|
|
@ -1866,7 +1867,7 @@ def remapNamespacePrefix(node, oldprefix, newprefix):
|
|||
|
||||
# clone and add all the child nodes
|
||||
for child in node.childNodes:
|
||||
newNode.appendChild(child.cloneNode(true))
|
||||
newNode.appendChild(child.cloneNode(True))
|
||||
|
||||
# replace old node with new node
|
||||
node = parent.replaceChild( newNode, node )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue