diff --git a/src/site/changes/changes2html.pl b/src/site/changes/changes2html.pl index d830bb076aa..44e07fc4eb6 100755 --- a/src/site/changes/changes2html.pl +++ b/src/site/changes/changes2html.pl @@ -383,9 +383,11 @@ for my $rel (@releases) { for my $itemnum (1..$#{$items}) { my $item = $items->[$itemnum]; - $item =~ s:&:&:g; # Escape HTML metachars - $item =~ s:<:<:g; - $item =~ s:>:>:g; + $item =~ s:&:&:g; # Escape HTML metachars, + $item =~ s:<(?!/?code>):<:gi; # but leave tags intact + $item =~ s:(?:>:gi; # and add
 tags so that
+      $item =~ s::
:gi;       #   whitespace is preserved in the
+      $item =~ s::
:gi; # output. # Put attributions on their own lines. # Check for trailing parenthesized attribution with no following period.