Add import-export round-trip check.
* add fix for the file export code--remove tag tail and text, not just the children.
This commit is contained in:
@@ -257,6 +257,11 @@ class XmlDescriptor(XModuleDescriptor):
|
||||
# ...and remove all of its children here
|
||||
for child in xml_object:
|
||||
xml_object.remove(child)
|
||||
# also need to remove the text of this object.
|
||||
xml_object.text = ''
|
||||
# and the tail for good measure...
|
||||
xml_object.tail = ''
|
||||
|
||||
|
||||
xml_object.set('filename', self.name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user