diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-06 15:45:12 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-08 15:27:44 +0000 |
commit | eb68c3fa83ce8796a69429c83adedddba64c7cdc (patch) | |
tree | 94ac2c0b5feb86020a3dd974957e8fc4ff8386d2 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 06349f620635fc902499175579d98c83a42debec (diff) |
Ignore empty paragraphs in html_para.
And do not generate them needlessly.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index ff90132e4..695832832 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -488,7 +488,8 @@ sub inspect : Private { $c->forward( '/admin/reports/edit_category', [ $problem, 1 ] ); if ($c->stash->{update_text}) { - $update_text .= "\n\n" . $c->stash->{update_text}; + $update_text .= "\n\n" if $update_text; + $update_text .= $c->stash->{update_text}; } # The new category might require extra metadata (e.g. pothole size), so |