From: Don Armstrong Date: Tue, 23 Jan 2018 05:18:33 +0000 (-0800) Subject: the prefilter was killing newlines right before '<:-', fix that X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=16a7634fb42d92a4503e7c221c253ee33c62a56e the prefilter was killing newlines right before '<:-', fix that --- diff --git a/Debbugs/Text.pm b/Debbugs/Text.pm index dfc1d3c..53ecf04 100644 --- a/Debbugs/Text.pm +++ b/Debbugs/Text.pm @@ -132,7 +132,7 @@ sub __text_xslate_functions_text { sub __html_template_prefilter { my $text = shift; $text =~ s/^\s+:/:/mg; - $text =~ s/((?:^:[^\n]*\n)?)\s+(<:-)/$1$2/mg; + $text =~ s/((?:^:[^\n]*\n)?)\s*(<:-)/$1$2/mg; $text =~ s/(-:>)\s+(^:|)/$1.(length($2)?"\n$2":'')/emg; return $text; }