You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/05/05 11:19:03 UTC

svn commit: r1334356 - /commons/proper/codec/trunk/src/changes/release-notes.vm

Author: sebb
Date: Sat May  5 09:19:03 2012
New Revision: 1334356

URL: http://svn.apache.org/viewvc?rev=1334356&view=rev
Log:
Generalise to any JIRA id; allow for 4 digit issue numbers

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

Modified: commons/proper/codec/trunk/src/changes/release-notes.vm
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/changes/release-notes.vm?rev=1334356&r1=1334355&r2=1334356&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/changes/release-notes.vm (original)
+++ commons/proper/codec/trunk/src/changes/release-notes.vm Sat May  5 09:19:03 2012
@@ -26,10 +26,15 @@ $release.description.replaceAll("  ", "
 ")
 
 ## set up indent sizes. Only change indent1
-## indent1 =   CODEC-nnn:
-#set($indent1="          ")
+#set($props=${project.properties})
+#set($jiralen=$props.get("commons.jira.id").length())
+## indent1 =   POOL-nnnn:
+#set($blanklen=$jiralen+6)## +6 for "-nnnn:"
+## must be at least as long as the longest JIRA id
+#set($blanks="                                  ")
+#set($indent1=$blanks.substring(0,$blanklen))
 ## indent2 allows for issue wrapper
-#set($indent2="$indent1    ")
+#set($indent2="$indent1   ")
 ##
 #macro ( processaction )
 ## Use replaceAll to fix up LF-only line ends on Windows.
@@ -42,6 +47,7 @@ $release.description.replaceAll("  ", "
 ## Pad shorter issue numbers
 #if ($issue.length() < $indent1.length())#set ($issue="$issue ")#end
 #if ($issue.length() < $indent1.length())#set ($issue="$issue ")#end
+#if ($issue.length() < $indent1.length())#set ($issue="$issue ")#end
 #else
 #set($issue=$indent1)
 #end
@@ -50,7 +56,7 @@ $release.description.replaceAll("  ", "
 #else
 #set($dueto="")
 #end
-o $issue  ${action}$dueto
+o $issue ${action}$dueto
 #set($action="")
 #set($issue="")
 #set($dueto="")