Use setPadText(true) to ensure that text immediately preceded by or followed by an element will be surrounded by a single space. Unfortunately this also adds spaces after tags at a line ending so all our changes.xml files will get reformatted. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@441044 13f79535-47bb-0310-9956-ffa450edef68