aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Template.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-10 19:27:06 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-11-10 19:27:06 +0000
commitd8dd060a4c2f75e89a24f99634d91a6d8ef0e2bc (patch)
treeabb543c32c9e5f239cc66cff1bafa697f322ebd3 /perllib/FixMyStreet/Template.pm
parentdb61249c59a96a2fad80523288b7d13881c10965 (diff)
parentb886792181eb77206054e73315a9d14cdb17e936 (diff)
Merge branch 'admin-auditing'
Diffstat (limited to 'perllib/FixMyStreet/Template.pm')
-rw-r--r--perllib/FixMyStreet/Template.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Template.pm b/perllib/FixMyStreet/Template.pm
index 9c565114b..ba4376959 100644
--- a/perllib/FixMyStreet/Template.pm
+++ b/perllib/FixMyStreet/Template.pm
@@ -113,7 +113,7 @@ into <br>s too.
sub html_paragraph : Filter('html_para') {
my $text = shift;
- my @paras = split(/(?:\r?\n){2,}/, $text);
+ my @paras = grep { $_ } split(/(?:\r?\n){2,}/, $text);
s/\r?\n/<br>\n/g for @paras;
$text = "<p>\n" . join("\n</p>\n\n<p>\n", @paras) . "</p>\n";
return $text;