commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r941346 - /commons/proper/compress/trunk/src/changes/release-notes.vm
Date Wed, 05 May 2010 15:30:18 GMT
Author: sebb
Date: Wed May  5 15:30:18 2010
New Revision: 941346

URL: http://svn.apache.org/viewvc?rev=941346&view=rev
Log:
Temporary hack to fix up LF-only EOLs on Windows

Modified:
    commons/proper/compress/trunk/src/changes/release-notes.vm

Modified: commons/proper/compress/trunk/src/changes/release-notes.vm
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/changes/release-notes.vm?rev=941346&r1=941345&r2=941346&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/changes/release-notes.vm (original)
+++ commons/proper/compress/trunk/src/changes/release-notes.vm Wed May  5 15:30:18 2010
@@ -30,7 +30,9 @@ Changes in this version include:
 #if ($release.getActions('add').size() !=0)
 New features:
 #foreach($actionItem in $release.getActions('add'))
-#set($action=$actionItem.getAction())
+## Use replaceAll to fix up LF-only line ends on Windows.
+#set($action=$actionItem.getAction().replaceAll("\n","
+"))
 #if ($actionItem.getIssue())
 #set($issue=$actionItem.getIssue())
 #else
@@ -51,7 +53,9 @@ o#if($!issue != "") $issue: #end ${actio
 #if ($release.getActions('fix').size() !=0)
 Fixed Bugs:
 #foreach($actionItem in $release.getActions('fix'))
-#set($action=$actionItem.getAction())
+## Use replaceAll to fix up LF-only line ends on Windows.
+#set($action=$actionItem.getAction().replaceAll("\n","
+"))
 #if ($actionItem.getIssue())
 #set($issue=$actionItem.getIssue())
 #else
@@ -72,7 +76,9 @@ o#if($!issue != "") $issue: #end ${actio
 #if ($release.getActions('update').size() !=0)
 Changes:
 #foreach($actionItem in $release.getActions('update'))
-#set($action=$actionItem.getAction())
+## Use replaceAll to fix up LF-only line ends on Windows.
+#set($action=$actionItem.getAction().replaceAll("\n","
+"))
 #if ($actionItem.getIssue())
 #set($issue=$actionItem.getIssue())
 #else
@@ -93,7 +99,9 @@ o#if($!issue != "") $issue: #end ${actio
 #if ($release.getActions('remove').size() !=0)
 Removed:
 #foreach($actionItem in $release.getActions('remove'))
-#set($action=$actionItem.getAction())
+## Use replaceAll to fix up LF-only line ends on Windows.
+#set($action=$actionItem.getAction().replaceAll("\n","
+"))
 #if ($actionItem.getIssue())
 #set($issue=$actionItem.getIssue())
 #else



Mime
View raw message