If you save an SVG file containing an element with a style attribute like style="stroke-width: 5;" it works fine, but if there is a space after the semicolon like style="stroke-width: 5; " it crashes with the following stack trace, leaving the exported DXF file empty.
Traceback (most recent call last):
File "dxf_outlines.py", line 290, in <module>
e.affect()
File "C:\Program Files (x86)\Inkscape\share\extensions\inkex.py", line 215, in affect
self.effect()
File "dxf_outlines.py", line 281, in effect
self.process_group(doc)
File "dxf_outlines.py", line 250, in process_group
self.process_group(node)
File "dxf_outlines.py", line 250, in process_group
self.process_group(node)
File "dxf_outlines.py", line 250, in process_group
self.process_group(node)
File "dxf_outlines.py", line 254, in process_group
self.process_shape(node, self.groupmat[-1])
File "dxf_outlines.py", line 167, in process_shape
style = simplestyle.parseStyle(style)
File "C:\Program Files (x86)\Inkscape\share\extensions\simplestyle.py", line 179, in parseStyle
return dict([[x.strip() for x in i.split(":")] for i in s.split(";") if len(i)])
ValueError: dictionary update sequence element #1 has length 1; 2 is required
Reproduced with Inkscape 0.48+devel r12487 on OS X 10.7.5:
A trailing '; ' in the 'style' attribute of an object caused DXF export to fail (script error). Any occurrences of the same sequence of characters ('; ') within the style attribute string OTOH do not trigger the error in the python script.
AFAICT it is not possible to create such a style attribute (with a trailing '; ') from within Inkscape (new document, default prefs): any whitespace occurring after a ';' in the style attribute string is immediately removed on 'Set' in the XML Editor, and if a ';' remains as trailing character, it is removed as well.