- 
                Notifications
    You must be signed in to change notification settings 
- Fork 63
Closed
Labels
Description
When using input_type=xml and having a space between elements, pretty_print doesn't work.
Steps to reproduce:
# cat /tmp/empty.xml
<?xml version='1.0' encoding='UTF-8'?>
<tag1></tag1>
# ansible localhost -m xml -a "file=/tmp/empty.xml pretty_print=true input_type=xml xpath=/tag1 add_children='<bean><Property/></bean>'"
# cat /tmp/empty.xml
<?xml version='1.0' encoding='UTF-8'?>
<tag1>
  <bean>
    <Property/>
  </bean>
</tag1>
# ansible localhost -m xml -a "file=/tmp/empty.xml pretty_print=true input_type=xml xpath=/tag1 add_children='<bean> <Property/></bean>'"
# cat /tmp/empty.xml
<?xml version='1.0' encoding='UTF-8'?>
<tag1>
  <bean>
    <Property/>
  </bean>
  <bean> <Property/></bean>
</tag1>