Apache Lucene open-source search software
Fix warnings about undefined headers
Steven Rowef740094eb94c
diff --git a/lucene/site/changes/changes2html.pl b/lucene/site/changes/changes2html.plindex 98e8d8f09ba..9e4dfd95846 100755--- a/lucene/site/changes/changes2html.pl+++ b/lucene/site/changes/changes2html.pl@@ -144,7 +144,7 @@ for (my $line_num = 0 ; $line_num <= $#lines ; ++$line_num) {# Make a fake release to hold pre-release sections and itemspush @releases, [ undef, undef, undef, $sections ];}- push @$sections, [ undef, $items ];+ push @$sections, [ '', $items ];}my $type;@@ -443,15 +443,17 @@ for my $rel (@releases) {my $list_item = "li";if ($release) {- if ($heading and $heading eq 'Detailed Change List') {- print " <$subheader>$heading</$subheader>\n";- next;- } elsif ($has_release_sections and $heading) {- print " <li><a id=\"$relid.$sectid\"",- " href=\"javascript:toggleList('$relid.$sectid')\">",- ($heading || ''), "</a> $numItemsStr\n"+ if ($heading) {+ if ($heading eq 'Detailed Change List') {+ print " <$subheader>$heading</$subheader>\n";+ next;+ } elsif ($has_release_sections) {+ print " <li><a id=\"$relid.$sectid\"",+ " href=\"javascript:toggleList('$relid.$sectid')\">$heading</a>",+ " $numItemsStr\n"+ }}- } else {+ } else { # $release is not definedprint "<h2>$heading</h2>\n" if ($heading);$list_item = "p";}