mirror of https://github.com/apache/lucene.git
LUCENE-1610: fix changes-to-html to properly format <code>...</code>
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce0113725e
commit
65fd24fbc4
|
@ -383,9 +383,11 @@ for my $rel (@releases) {
|
||||||
|
|
||||||
for my $itemnum (1..$#{$items}) {
|
for my $itemnum (1..$#{$items}) {
|
||||||
my $item = $items->[$itemnum];
|
my $item = $items->[$itemnum];
|
||||||
$item =~ s:&:&:g; # Escape HTML metachars
|
$item =~ s:&:&:g; # Escape HTML metachars,
|
||||||
$item =~ s:<:<:g;
|
$item =~ s:<(?!/?code>):<:gi; # but leave <code> tags intact
|
||||||
$item =~ s:>:>:g;
|
$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.
|
# Put attributions on their own lines.
|
||||||
# Check for trailing parenthesized attribution with no following period.
|
# Check for trailing parenthesized attribution with no following period.
|
||||||
|
|
Loading…
Reference in New Issue