# HG changeset patch # User wycc # Date 1301495092 -28800 # Node ID 4a786de1d62f3a3432101156f956db49237690ce # Parent 2d56ed5b099596f8a441088845302eeaf09d7d1e Prevent the inkscape:bbox-* from duplicated. This will crash the libxml parser. diff -r 2d56ed5b0995 -r 4a786de1d62f pyink/mbbbox.py --- a/pyink/mbbbox.py Wed Mar 30 13:42:30 2011 +0800 +++ b/pyink/mbbbox.py Wed Mar 30 22:24:52 2011 +0800 @@ -12,6 +12,8 @@ attrs = [] for attrname in node.allAttributes(): attrvalue = node.getAttribute(attrname) + if attrname[0:13] == 'inkscape:bbox': + continue attr = '%s="%s"' % (attrname, attrvalue) attrs.append(attr) pass @@ -56,6 +58,8 @@ attrs = [] for attrname in node.allAttributes(): + if attrname[0:13] == 'inkscape:bbox': + continue attrvalue = node.getAttribute(attrname) attr = '%s="%s"' % (attrname, attrvalue) attrs.append(attr)