Apache Lucene open-source search software
LUCENE-1610: fix changes-to-html to properly format <code>...</code>
Michael McCandless65fd24fbc4c0
diff --git a/src/site/changes/changes2html.pl b/src/site/changes/changes2html.plindex 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 <code> tags intact+ $item =~ s:(?<!code)>:>:gi; # and add <pre> tags so that+ $item =~ s:<code>:<code><pre>:gi; # whitespace is preserved in the+ $item =~ s:</code>:</pre></code>:gi; # output.# Put attributions on their own lines.# Check for trailing parenthesized attribution with no following period.