Index: tp/Texinfo/Convert/HTML.pm =================================================================== --- tp/Texinfo/Convert/HTML.pm (revision 8445) +++ tp/Texinfo/Convert/HTML.pm (working copy) @@ -1563,7 +1563,7 @@ my $id = $self->command_id($command); if (defined($id) and $id ne '' and address@hidden>{'multiple_pass'}} and !$self->in_string()) { - return ""; + return ""; } return ''; } @@ -2308,8 +2308,10 @@ } my $element_id = $self->command_id($command); - $result .= "\n" + $result .= "
command_id($command); my $label; if (defined($id) and $id ne '') { - $label = ""; + $label = ""; } else { $label = ''; } @@ -3070,7 +3073,7 @@ } my $index_id = $self->command_id ($command); if (defined($index_id) and $index_id ne '') { - $result .= "\n\n"; + $result .= "\n\n"; } return '
' .$result. '
' . "\n"; @@ -3377,7 +3380,7 @@ if (defined($index_id) and $index_id ne '' and address@hidden>{'multiple_pass'}} and !$self->in_string()) { - my $result = ""; + my $result = ""; $result .= "\n" unless ($self->in_preformatted()); return $result; } @@ -3536,8 +3539,8 @@ $entries_text .= "\n"; } # a letter and associated indice entries - $result .= '' . - "".$self->protect_text($letter).'' + $result .= '' . + "".$self->protect_text($letter) . "\n" . $entries_text . " ".$self->get_conf('DEFAULT_RULE')."\n"; @@ -3566,7 +3569,7 @@ if ($special_element) { my $id = $self->command_id($special_element); if ($id ne '') { - $result .= "\n"; + $result .= "\n"; } $heading = $self->command_text($special_element); } else { @@ -4054,7 +4057,7 @@ my $index_label = ''; my $index_id = $self->command_id($command); if (defined($index_id) and $index_id ne '' and address@hidden>{'multiple_pass'}}) { - $index_label = ""; + $index_label = " id=\"$index_id\""; } my $arguments = Texinfo::Common::definition_arguments_content($command); @@ -4233,7 +4236,7 @@ } } - return '
'.$index_label.$self->convert_tree({'type' => '_code', + return "".$self->convert_tree({'type' => '_code', 'contents' => [$tree]}) . "
\n"; } else { my $category_prepared = ''; @@ -4271,9 +4274,8 @@ $type_name .= ' ' . $name . '' if ($name ne ''); $type_name .= $arguments_text; - return "" . $type_name . - "" . $category_prepared . - $index_label . "\n"; + return "" . $type_name . + "" . $category_prepared . "\n"; } } @@ -4430,7 +4432,7 @@ $special_element = $element->{'extra'}->{'special_element'}; my $id = $self->command_id($element); if ($id ne '') { - $result .= "\n"; + $result .= "\n"; } if ($self->get_conf('HEADERS') # first in page