PR: MPCHANGES-31

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
This commit is contained in:
ltheussl 2006-09-07 10:10:40 +00:00
parent d5c1cdbd72
commit bf93c48afc
2 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,7 @@ public class ReleaseVersion
format.setIndentSize( 2 ); format.setIndentSize( 2 );
format.setNewlines( true ); format.setNewlines( true );
format.setTrimText( true ); format.setTrimText( true );
format.setPadText( true );
if ( encoding == null || "".equals( encoding ) ) if ( encoding == null || "".equals( encoding ) )
{ {
String docsEncoding = doc.getXMLEncoding(); String docsEncoding = doc.getXMLEncoding();

View File

@ -24,6 +24,7 @@
</properties> </properties>
<body> <body>
<release version="1.7-SNAPSHOT" date="In SVN"> <release version="1.7-SNAPSHOT" date="In SVN">
<action dev="ltheussl" type="fix" issue="MPCHANGES-31"><code>changes:release-version</code> removes spaces after closing tags.</action>
<action dev="ltheussl" type="update">It now requires Maven 1.1.</action> <action dev="ltheussl" type="update">It now requires Maven 1.1.</action>
<action dev="ltheussl" type="fix" issue="MPCHANGES-32">The encoding of the changes.xml file is not preserved after doing release-version.</action> <action dev="ltheussl" type="fix" issue="MPCHANGES-32">The encoding of the changes.xml file is not preserved after doing release-version.</action>
<action dev="ltheussl" type="add">New property maven.changes.outputencoding.</action> <action dev="ltheussl" type="add">New property maven.changes.outputencoding.</action>