]> git.donarmstrong.com Git - debbugs.git/commitdiff
the prefilter was killing newlines right before '<:-', fix that
authorDon Armstrong <don@donarmstrong.com>
Tue, 23 Jan 2018 05:18:33 +0000 (21:18 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 23 Jan 2018 05:18:33 +0000 (21:18 -0800)
Debbugs/Text.pm

index dfc1d3c42991d5341e55e8fc6368708938984396..53ecf04c47fb60019ec09445355e07700eec46cc 100644 (file)
@@ -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;
 }