Soy: Extend shortSubject to 72 chars
The default wrap value is 72. Conform to that.
Change-Id: I6ca5824831a48e90e1b697fb153102c7e38adbd8
diff --git a/Documentation/config-mail.txt b/Documentation/config-mail.txt
index 1adc8d9..af2bd98 100644
--- a/Documentation/config-mail.txt
+++ b/Documentation/config-mail.txt
@@ -201,7 +201,7 @@
$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::
+
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/ChangeEmail.java b/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/ChangeEmail.java
index bc09488..3753334 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/ChangeEmail.java
+++ b/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/ChangeEmail.java
@@ -458,10 +458,10 @@
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<>();