Revert "E-mail subject truncation is over-eager"
This reverts commit b4dae5e1a0
The truncation failed when the subject length was 59,
throwing StringIndexOutOfBoundsException and causing
email formatting to abort with no message sent.
This commit is contained in:
committed by
gerrit code review
parent
0d26889a45
commit
a19c08ea32
@@ -32,6 +32,6 @@
|
||||
## subject line for ALL emails related to changes.
|
||||
##
|
||||
#macro(elipses $length $str)
|
||||
#if(($str.length()+3) > $length)${str.substring(0,$length)}...#else$str#end
|
||||
#if($str.length() > $length)${str.substring(0,$length)}...#else$str#end
|
||||
#end
|
||||
Change in $projectName.replaceAll('/.*/', '...')[$branch.shortName]: #elipses(60, $change.subject)
|
||||
|
||||
Reference in New Issue
Block a user