Soy: Extend shortSubject to 72 chars
The default wrap value is 72. Conform to that. Change-Id: I6ca5824831a48e90e1b697fb153102c7e38adbd8
This commit is contained in:
parent
c50c228684
commit
6add177648
@ -201,7 +201,7 @@ The subject corresponding to the first patch set of the current change.
|
||||
|
||||
$change.shortSubject::
|
||||
+
|
||||
The subject limited to 63 characters, with an ellipsis if it exceeds that.
|
||||
The subject limited to 72 characters, with an ellipsis if it exceeds that.
|
||||
|
||||
$change.ownerEmail::
|
||||
+
|
||||
|
@ -458,10 +458,10 @@ public abstract class ChangeEmail extends NotificationEmail {
|
||||
changeData.put("subject", subject);
|
||||
// shortSubject is the subject limited to 63 characters, with an ellipsis if
|
||||
// it exceeds that.
|
||||
if (subject.length() < 64) {
|
||||
if (subject.length() < 73) {
|
||||
changeData.put("shortSubject", subject);
|
||||
} else {
|
||||
changeData.put("shortSubject", subject.substring(0, 60) + "...");
|
||||
changeData.put("shortSubject", subject.substring(0, 69) + "...");
|
||||
}
|
||||
|
||||
Map<String, Object> patchSetData = new HashMap<>();
|
||||
|
Loading…
Reference in New Issue
Block a user