diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-07 14:05:58 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-06 12:52:32 +0100 |
commit | 525c7f29761a158748cd068e3432115cd25b9f4c (patch) | |
tree | 92f6334ab4451710ed8e41ac296afc74cd643561 /perllib | |
parent | f48f6862dd45c2bbf8ea8a9c7a1762d0242d7195 (diff) |
Strip line end spaces in emails.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Email.pm | 1 |
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); |