You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2006/09/07 12:10:41 UTC

svn commit: r441044 - in /maven/maven-1/plugins/trunk/changes: src/main/org/apache/maven/changes/ReleaseVersion.java xdocs/changes.xml

Author: ltheussl
Date: Thu Sep  7 03:10:40 2006
New Revision: 441044

URL: http://svn.apache.org/viewvc?view=rev&rev=441044
Log:
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.

Modified:
    maven/maven-1/plugins/trunk/changes/src/main/org/apache/maven/changes/ReleaseVersion.java
    maven/maven-1/plugins/trunk/changes/xdocs/changes.xml

Modified: maven/maven-1/plugins/trunk/changes/src/main/org/apache/maven/changes/ReleaseVersion.java
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/changes/src/main/org/apache/maven/changes/ReleaseVersion.java?view=diff&rev=441044&r1=441043&r2=441044
==============================================================================
--- maven/maven-1/plugins/trunk/changes/src/main/org/apache/maven/changes/ReleaseVersion.java (original)
+++ maven/maven-1/plugins/trunk/changes/src/main/org/apache/maven/changes/ReleaseVersion.java Thu Sep  7 03:10:40 2006
@@ -137,6 +137,7 @@
         format.setIndentSize( 2 );
         format.setNewlines( true );
         format.setTrimText( true );
+        format.setPadText( true );
         if ( encoding == null || "".equals( encoding ) )
         {
             String docsEncoding = doc.getXMLEncoding();

Modified: maven/maven-1/plugins/trunk/changes/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/changes/xdocs/changes.xml?view=diff&rev=441044&r1=441043&r2=441044
==============================================================================
--- maven/maven-1/plugins/trunk/changes/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/changes/xdocs/changes.xml Thu Sep  7 03:10:40 2006
@@ -24,6 +24,7 @@
   </properties>
   <body>
     <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="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>