Commit 0b4b6bfd authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix indention when writing srdf file

parent 96c636a1
......@@ -200,7 +200,8 @@ class CollisionPairs(QtGui.QWidget):
attrib["link2"] = pp.l2
attrib["reason"] = reason
el = ET.Element("disable_collisions", attrib = attrib)
el.tail = "\n "
if len(robot.getchildren()) > 0:
robot.getchildren()[-1].tail = "\n "
robot.append(el)
tree.write(filename)
Supports Markdown
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