Commit 70b07972 authored by Yusei Tahara's avatar Yusei Tahara

"office:*" attributes may not exist.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38446 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84618194
......@@ -807,7 +807,7 @@ class ODFStrategy(Implicit):
# such as '0.0', '$0'
attrib = column.attrib
for key in attrib.keys():
if key.startswith("{%s}" % column.nsmap['office']):
if 'office' in column.nsmap and key.startswith("{%s}" % column.nsmap['office']):
del attrib[key]
column.text = None
[column.remove(child) for child in column]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment