diff options
author | Shawn O. Pearce <sop@google.com> | 2009-01-26 14:21:04 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-01-26 14:21:04 -0800 |
commit | 5ff9d57feb6420370cc646dc3a3934f3ef4f3ad4 (patch) | |
tree | 7071057dfa74cb467235e298ed92d9bfee9eba23 | |
parent | 3a32c835db5f51974019bdacf7d08efc060fe0e5 (diff) |
Don't include the footer "--" line in emails if the footer is empty
We should only include the "--\n" line in an email sent from Gerrit
if there will be content below that line. Otherwise its just noise
and looks out of place in the message.
Usually there is content below the line, as the canonical_url is set
and thus we can make backlinks to ourselves. But this isn't always
the case, so we should format a bit better when it isn't.
Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r-- | appjar/src/main/java/com/google/gerrit/server/ChangeMail.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/appjar/src/main/java/com/google/gerrit/server/ChangeMail.java b/appjar/src/main/java/com/google/gerrit/server/ChangeMail.java index b6674e3e2f..fbf966e63b 100644 --- a/appjar/src/main/java/com/google/gerrit/server/ChangeMail.java +++ b/appjar/src/main/java/com/google/gerrit/server/ChangeMail.java @@ -180,8 +180,8 @@ public class ChangeMail { } private void newChangeFooter() { - openFooter(); if (changeUrl() != null) { + openFooter(); body.append("View this change at "); body.append(changeUrl()); body.append("\n"); @@ -251,8 +251,8 @@ public class ChangeMail { return; } - openFooter(); if (changeUrl() != null) { + openFooter(); body.append("To respond visit "); body.append(changeUrl()); body.append("\n"); |