Soy: Extend shortSubject to 72 chars

The default wrap value is 72. Conform to that.

Change-Id: I6ca5824831a48e90e1b697fb153102c7e38adbd8
This commit is contained in:
Orgad Shaneh 2017-06-15 14:30:59 +03:00
parent c50c228684
commit 6add177648
2 changed files with 3 additions and 3 deletions

View File

@ -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::
+

View File

@ -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<>();