aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-06-07 14:05:58 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-06 12:52:32 +0100
commit525c7f29761a158748cd068e3432115cd25b9f4c (patch)
tree92f6334ab4451710ed8e41ac296afc74cd643561 /perllib
parentf48f6862dd45c2bbf8ea8a9c7a1762d0242d7195 (diff)
Strip line end spaces in emails.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Email.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Email.pm b/perllib/FixMyStreet/Email.pm
index 3d363f80d..ce7dad47a 100644
--- a/perllib/FixMyStreet/Email.pm
+++ b/perllib/FixMyStreet/Email.pm
@@ -187,6 +187,7 @@ sub construct_email ($) {
# regex means, "replace any line ending that is neither preceded (?<!\n)
# nor followed (?!\n) by a blank line with a single space".
$body =~ s#(?<!\n)(?<! )\n(?!\n)# #gs;
+ $body =~ s# +$##mg;
$p->{Subject} = $subject if defined($subject);