Parsed files with includes have huge amounts of whitespace and include Xacro comments
gkjohnson opened this issue · comments
Garrett Johnson commented
See generated Valkyrie URDF xacro. It may be best to just trim all newline whitespace? How does python xacro handle this?
Garrett Johnson commented
It looks like newlines and comments before a xacro node are stripped: https://github.com/ros/xacro/blob/melodic-devel/src/xacro/__init__.py#L792-L809
Garrett Johnson commented
And there's a custom pretty printer for xml here that collapses whitespace:
Garrett Johnson commented
While it's not exactly the same as the python xacro parser I'm going to call this good enough for now