Write all XML attributes of the Geometry element into a single line. Currently the XML output looks: <Geometry type="Part::GeomLineSegment" id="-1" migrated="1"> With the fix it will be: <Geometry type="Part::GeomLineSegment" id="-1" migrated="1">