texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/Convert/HTML.pm (%default_types_conv


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/HTML.pm (%default_types_conversion), (_convert_tree_unit_type, convert, output): do not use the text_root type to make sure that footnotes and rules are output when there are no tree units. Do it in the output() and convert() functions.
Date: Fri, 31 Dec 2021 05:02:46 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 31fdf1a1ba * tp/Texinfo/Convert/HTML.pm (%default_types_conversion), 
(_convert_tree_unit_type, convert, output): do not use the text_root type to 
make sure that footnotes and rules are output when there are no tree units.  Do 
it in the output() and convert() functions.
31fdf1a1ba is described below

commit 31fdf1a1ba5fa9399d841bd0f1645fed622aba0b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 31 11:02:13 2021 +0100

    * tp/Texinfo/Convert/HTML.pm (%default_types_conversion),
    (_convert_tree_unit_type, convert, output): do not use the
    text_root type to make sure that footnotes and rules are output
    when there are no tree units.  Do it in the output() and convert()
    functions.
    
    * tp/Texinfo/Structuring.pm (split_by_section),
    tp/Texinfo/Convert/TexinfoXML.pm (_convert): do not use
    no_root_command_tree() to check if there is no section.
    If there is no section, instead of setting extra no_section
    key, simply do not set extra section key.
---
 ChangeLog                                          |  15 ++++++
 tp/TODO                                            |   2 +
 tp/Texinfo/Convert/HTML.pm                         |  54 ++++++++-------------
 tp/Texinfo/Convert/TexinfoXML.pm                   |   8 +--
 tp/Texinfo/Structuring.pm                          |  48 ++++++++----------
 .../results/converters_tests/at_commands_in_raw.pl |   3 +-
 tp/t/results/converters_tests/complex_nestings.pl  |   3 +-
 .../results/converters_tests/footnote_no_number.pl |   3 +-
 .../footnote_no_number_separate.pl                 |   3 +-
 tp/t/results/converters_tests/image_formatting.pl  |   3 +-
 .../index_entry_in_preformatted.pl                 |   3 +-
 .../printindex_merged_indices_code_style.pl        |   3 +-
 tp/t/results/converters_tests/refs_formatting.pl   |   3 +-
 .../converters_tests/things_before_setfilename.pl  |   3 +-
 .../coverage/punctuation_in_line_commands.pl       |   3 +-
 tp/t/results/coverage_braces/footnote_no_node.pl   |   3 +-
 .../coverage_braces/inforef_too_much_args.pl       |   3 +-
 tp/t/results/coverage_braces/test_image.pl         |   4 +-
 tp/t/results/coverage_braces/verb_in_xref.pl       |   3 +-
 .../def/all_commands_delimiters_printindex.pl      |   1 +
 tp/t/results/def/all_commands_printindex.pl        |   1 +
 tp/t/results/def/space_in_def_for_index.pl         |   1 +
 tp/t/results/float/anchor_in_caption.pl            |   1 +
 tp/t/results/float/cindex_in_caption.pl            |   1 +
 .../results/float/comment_space_comand_in_float.pl |   1 +
 tp/t/results/float/footnote_in_caption.pl          |   1 +
 .../results/float/footnote_in_caption_and_error.pl |   1 +
 tp/t/results/formats_encodings/accent.pl           |   3 +-
 .../formats_encodings/accent_enable_encoding.pl    |   3 +-
 tp/t/results/formats_encodings/accentenc.pl        |   3 +-
 .../formats_encodings/accentenc_enable_encoding.pl |   3 +-
 tp/t/results/formats_encodings/weird_accents.pl    |   3 +-
 .../weird_accents_disable_encoding.pl              |   3 +-
 tp/t/results/formatting/cond.pl                    |   3 +-
 .../results/formatting/cond_ifhtml_ifinfo_iftex.pl |   3 +-
 .../cond_no-ifhtml_no-ifinfo_no-iftex.pl           |   3 +-
 .../res_html/documentlanguage_set.html             |   3 +-
 .../res_html/documentlanguage_set.html             |   3 +-
 .../res_html/simplest.html                         |   3 +-
 .../simplest_test_prefix/res_html/truc.html        |   3 +-
 tp/t/results/formatting/texi_cond.pl               |   3 +-
 tp/t/results/heading/heading_in_copying.pl         |   1 +
 .../character_number_leading_toc_stoc.pl           |   3 +-
 .../deftypefnnewline_for_copying_after.pl          |   3 +-
 .../deftypefnnewline_for_copying_before.pl         |   3 +-
 tp/t/results/html_tests/documentdescription.pl     |   3 +-
 .../empty_lines_at_beginning_no_setfilename.pl     |   3 +-
 tp/t/results/html_tests/html_in_copying.pl         |   3 +-
 .../results/html_tests/index_and_node_same_name.pl |   3 +-
 tp/t/results/html_tests/shortcontents_no_top.pl    |   3 +-
 tp/t/results/html_tests/simple_menu.pl             |   3 +-
 .../text_before_top_and_contents_after_title.pl    |   3 +-
 ...t_before_top_and_summarycontents_after_title.pl |   3 +-
 tp/t/results/html_tests/titles.pl                  |   3 +-
 ...default_cp_index_and_one_letter_syncodeindex.pl |   3 +-
 tp/t/results/indices/double_syncodeindex.pl        |   3 +-
 tp/t/results/indices/empty_cindex_entry.pl         |   3 +-
 tp/t/results/indices/empty_index_entry.pl          |   3 +-
 tp/t/results/indices/empty_string_index_entry.pl   |   3 +-
 .../encoding_index_ascii/res_html/index.html       |   3 +-
 .../res_html/index.html                            |   3 +-
 .../encoding_index_latin1/res_html/index.html      |   3 +-
 .../res_html/index.html                            |   3 +-
 .../encoding_index_utf8/res_html/index.html        |   3 +-
 .../res_html/index.html                            |   3 +-
 tp/t/results/indices/explicit_sort_key.pl          |   3 +-
 tp/t/results/indices/ftable_vtable.pl              |   3 +-
 tp/t/results/indices/image_lines_count.pl          |   3 +-
 tp/t/results/indices/image_text_lines_count.pl     |   3 +-
 tp/t/results/indices/index_entries_locations.pl    |   3 +-
 .../indices/index_entry_before_first_node.pl       | Bin 9499 -> 9500 bytes
 tp/t/results/indices/index_entry_in_footnote.pl    |   3 +-
 .../indices/printindex_with_space_before.pl        | Bin 9068 -> 9069 bytes
 .../indices/same_index_entry_merged_indices.pl     |   3 +-
 tp/t/results/indices/seealso_duplicate.pl          |   3 +-
 tp/t/results/indices/syncodeindex_to_plain.pl      |   3 +-
 tp/t/results/indices/transparent_sort_chars.pl     |   3 +-
 tp/t/results/indices/w_lines_count.pl              |   3 +-
 tp/t/results/languages/appendix_translated.pl      |   3 +-
 tp/t/results/languages/command_translated.pl       |   3 +-
 tp/t/results/languages/multiple.pl                 |   1 +
 tp/t/results/languages/unknown_language.pl         |   3 +-
 tp/t/results/languages/unknown_region.pl           |   1 +
 .../menu/block_commands_in_menu_description.pl     |   3 +-
 tp/t/results/menu/detailmenu_unknown_node.pl       |   1 +
 tp/t/results/menu/example_in_menu_description.pl   |   3 +-
 tp/t/results/menu/formats_in_menu.pl               |   1 +
 tp/t/results/menu/inlineraw_in_menu_description.pl |   3 +-
 tp/t/results/menu/invalid_info_menu_entry.pl       |   1 +
 tp/t/results/menu/menu_in_example.pl               |   1 +
 tp/t/results/menu/menu_pointing_to_anchor.pl       |   3 +-
 tp/t/results/menu/no_colon_in_menu.pl              |   1 +
 tp/t/results/menu/reference_to_external_manual.pl  |   1 +
 tp/t/results/menu/submenu_in_example.pl            |   1 +
 tp/t/results/menu/verb_in_menu_description.pl      |   3 +-
 .../codequoteundirected_codequotebacktick.pl       |   3 +-
 .../misc_commands/comment_space_command_on_line.pl |   3 +-
 .../no_empty_line_between_headings.pl              |   3 +-
 tp/t/results/misc_commands/ref_in_center.pl        |   3 +-
 tp/t/results/misc_commands/test_allowcodebreaks.pl |   3 +-
 .../res_html/double_index_entry.html               |   3 +-
 .../nodes_before_top_no_nodes/res_html/index.html  |   3 +-
 .../res_html/equivalent_nodes.html                 |   3 +-
 .../node_footnote_end/res_html/node_footnote.html  |   3 +-
 .../res_html/node_footnote.html                    |   3 +-
 .../res_html/nodes_after_top_before_chapter.html   |   3 +-
 .../res_html/index.html                            |   3 +-
 .../res_html/placed_things_before_element.html     |   3 +-
 tp/t/results/regions/anchor_in_copying.pl          |   1 +
 .../regions/anchor_in_copying_in_footnote.pl       |   1 +
 tp/t/results/regions/anchor_in_titlepage.pl        |   3 +-
 .../regions/anchor_in_titlepage_titlepage.pl       |   3 +-
 tp/t/results/regions/format_in_titlepage.pl        |   1 +
 .../regions/format_in_titlepage_titlepage.pl       |   1 +
 tp/t/results/regions/today_in_copying.pl           |   3 +-
 tp/t/results/sectioning/anchor_zero.pl             |   1 +
 .../sectioning/chapter_before_and_after_part.pl    |   3 +-
 tp/t/results/sectioning/chapter_before_part.pl     |   3 +-
 tp/t/results/sectioning/contents.pl                |   3 +-
 .../sectioning/contents_and_shortcontents.pl       |   3 +-
 tp/t/results/sectioning/contents_in_html_text.pl   |   3 +-
 .../sectioning/contents_with_only_top_node.pl      |   1 +
 tp/t/results/sectioning/equivalent_labels.pl       |   1 +
 .../results/sectioning/no_argument_and_contents.pl |   3 +-
 .../node_sectop_before_chapter_no_node.pl          |   3 +-
 .../node_up_direction_for_top_with_manual.pl       |   1 +
 .../one_node_explicit_directions_anchor.pl         |   1 +
 tp/t/results/sectioning/one_subsection.pl          |   3 +-
 tp/t/results/sectioning/one_subsection_and_node.pl |   3 +-
 tp/t/results/sectioning/part_before_chapter.pl     |   3 +-
 tp/t/results/sectioning/part_before_section.pl     |   3 +-
 tp/t/results/sectioning/part_before_top.pl         |   3 +-
 .../sectioning/placed_things_before_element.pl     |   3 +-
 .../sectioning/placed_things_before_node.pl        |   3 +-
 tp/t/results/sectioning/ref_to_top.pl              |   3 +-
 .../sectioning/section_before_after_top_node.pl    |   3 +-
 tp/t/results/sectioning/section_before_part.pl     |   3 +-
 .../sectioning/section_below_unnumbered_no_top.pl  |   3 +-
 .../results/sectioning/section_node_before_part.pl |   3 +-
 tp/t/results/sectioning/sections_test.pl           |   3 +-
 .../setfilename_on_top_and_after_node.pl           |   3 +-
 tp/t/results/sectioning/shortcontents.pl           |   3 +-
 .../sectioning/top_no_argument_and_content.pl      |   3 +-
 .../results/sectioning/top_no_argument_and_node.pl |   3 +-
 .../sectioning/top_no_argument_and_top_node.pl     |   3 +-
 tp/t/results/sectioning/top_node_part_top.pl       |   3 +-
 tp/t/results/sectioning/top_without_node_nodes.pl  |   3 +-
 .../sectioning/top_without_node_sections.pl        |   3 +-
 .../sectioning/two_unnumbered_no_argument.pl       |   1 +
 .../sectioning/unnumbered_before_node_top_top.pl   |   3 +-
 .../sectioning/unnumbered_before_top_node.pl       |   3 +-
 tp/t/results/xml_tests/node_and_bye.pl             |   7 +--
 tp/t/results/xtable/block_commands_in_table.pl     |   3 +-
 .../res_parser/test_redefine_need/test_need.html   |   3 +-
 .../res_parser/index_nodes/index_nodes.html        |   3 +-
 .../res_parser/index_one_node/index_one_node.html  |   3 +-
 tp/tests/many_input_files/tex_l2h_res/tex.html     |   3 +-
 .../many_input_files/tex_l2h_res/tex_complex.html  |   3 +-
 tp/tests/many_input_files/tex_t4ht_res/tex.html    |   3 +-
 .../many_input_files/tex_t4ht_res/tex_complex.html |   3 +-
 .../nested_cartouche/nested_formats.html           |   3 +-
 .../res_parser/nested_deffn/nested_formats.html    |   3 +-
 .../nested_enumerate/nested_formats.html           |   3 +-
 .../res_parser/nested_example/nested_formats.html  |   3 +-
 .../nested_flushright/nested_formats.html          |   3 +-
 .../res_parser/nested_group/nested_formats.html    |   3 +-
 .../res_parser/nested_itemize/nested_formats.html  |   3 +-
 .../res_parser/nested_menu/nested_formats.html     |   3 +-
 .../nested_multitable/nested_formats.html          |   3 +-
 .../nested_quotation/nested_formats.html           |   3 +-
 .../res_parser/nested_table/nested_formats.html    |   3 +-
 .../res_parser/block_EOL_tex/block_EOL.html        |   3 +-
 .../math_not_closed/math_not_closed.html           |   3 +-
 tp/tests/tex_html/res_parser/tex/tex.html          |   3 +-
 .../res_parser/tex_complex_httex/tex_complex.html  |   3 +-
 .../res_parser/tex_complex_l2h/tex_complex.html    |   3 +-
 .../res_parser/tex_eqalign_httex/tex_eqalign.html  |   3 +-
 .../res_parser/tex_eqalign_l2h/tex_eqalign.html    |   3 +-
 .../res_parser/tex_gdef_httex/tex_gdef.html        |   3 +-
 .../tex_html/res_parser/tex_gdef_l2h/tex_gdef.html |   3 +-
 .../res_parser/tex_gdef_mathjax/tex_gdef.html      |   3 +-
 tp/tests/tex_html/res_parser/tex_httex/tex.html    |   3 +-
 .../res_parser/tex_not_closed/tex_not_closed.html  |   3 +-
 tp/tests/tex_html/res_parser/tex_notex/tex.html    |   3 +-
 184 files changed, 390 insertions(+), 217 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index dd4c3c9b41..9a7932a992 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2021-12-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/HTML.pm (%default_types_conversion),
+       (_convert_tree_unit_type, convert, output): do not use the
+       text_root type to make sure that footnotes and rules are output
+       when there are no tree units.  Do it in the output() and convert()
+       functions.
+
+       * tp/Texinfo/Structuring.pm (split_by_section),
+       tp/Texinfo/Convert/TexinfoXML.pm (_convert): do not use
+       no_root_command_tree() to check if there is no section.
+       If there is no section, instead of setting extra no_section
+       key, simply do not set extra section key.
+
+
 2021-12-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Structuring.pm (sectioning_structure): do not
diff --git a/tp/TODO b/tp/TODO
index 4e5ef1d3dc..f51ffcb589 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -13,6 +13,8 @@ xmllint --nonet --noout --valid commands.xml
 Before next release
 ===================
 
+HTML.pm l 8024 check if setting MATHJAX_SCRIPT and MATHJAX_SOURCE is not
+set and HTML_MATH is mathjax shouldn't be done before.
 
 Bugs
 ====
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index fb89a8faad..61e83baf9d 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -2949,7 +2949,6 @@ sub _convert_heading_command($$$$$)
           = $self->_contents_inline_element($content_command_name, undef);
         if ($contents_text ne '') {
           $result .= $contents_text;
-          #$result .= $contents_text . $self->get_conf('DEFAULT_RULE')."\n";
           $table_of_contents_was_output = 1;
         }
       }
@@ -5076,33 +5075,6 @@ sub _convert_table_item_type($$$$)
 $default_types_conversion{'table_item'} = \&_convert_table_item_type;
 $default_types_conversion{'inter_item'} = \&_convert_table_item_type;
 
-# This type is the only one present if there are no elements.  It is
-# therefore used to do the formatting normally done in tree unit
-# in case there are no tree units (no sectioning elements nor nodes).
-sub _convert_root_text_type($$$$)
-{
-  my $self = shift;
-  my $type = shift;
-  my $command = shift;
-  my $content = shift;
-
-  my $result = $content;
-  #$result =~ s/^\s*//;
-  # if there is no tree unit, the parent should not be a tree unit
-  if (!$command->{'parent'} 
-      or !$command->{'parent'}->{'type'}
-      or $command->{'parent'}->{'type'} ne 'unit') {
-    $result .= &{$self->{'format_footnotes_text'}}($self);
-    $result .= $self->get_conf('DEFAULT_RULE') ."\n",
-      if ($self->get_conf('PROGRAM_NAME_IN_FOOTER') 
-          and defined($self->get_conf('DEFAULT_RULE'))
-          and !$self->in_string());
-  }
-  return $result;
-}
-
-$default_types_conversion{'text_root'} = \&_convert_root_text_type;
-
 sub _contents_shortcontents_in_title($)
 {
   my $self = shift;
@@ -5246,10 +5218,14 @@ sub _convert_tree_unit_type($$$$)
   if (!$tree_unit->{'unit_prev'}) {
     $result .= $self->_print_title();
     if (!$tree_unit->{'unit_next'}) {
-      # only one element
+      # only one unit, use simplfied formatting
       $result .= $content;
+      # if there is one unit it also means that there is no formatting
+      # of footnotes in a separate unit.  And if footnotestyle is end
+      # the footnotes won't be done in format_element_footer either.
       $result .= &{$self->{'format_footnotes_text'}}($self);
-      $result .= $self->get_conf('DEFAULT_RULE');
+      $result .= $self->get_conf('DEFAULT_RULE')."\n";
+      # do it here, as it is won't be done at end of page in 
format_element_footer
       $result .= join('', $self->close_registered_sections_level(0));
       return $result;
     }
@@ -5329,8 +5305,9 @@ sub _default_format_element_footer($$$$)
       }
     }
   }
-  # FIXME the following condition is almost a duplication of end_page 
-  # except that the file counter needs not be 1
+  # FIXME the following condition is almost a duplication of the
+  # condition appearing in end_page except that the file counter
+  # needs not to be 1
   if ((!$element->{'unit_next'}
        or (defined($element->{'filename'})
            and $element->{'filename'} ne 
$element->{'unit_next'}->{'filename'}))
@@ -6147,7 +6124,8 @@ sub _set_root_commands_targets_node_files($$)
     foreach my $tree_unit (@$tree_units) {
       foreach my $root_command(@{$tree_unit->{'contents'}}) {
         # this happens for type 'text_root' which precedes the 
-        # root commands.  The target may also already be set for top node.
+        # root commands.  The target may also already be set for the top node
+        # tree unit.
         next if (!defined($root_command->{'cmdname'}) 
                  or $self->{'targets'}->{$root_command});
         if ($Texinfo::Common::sectioning_commands{$root_command->{'cmdname'}}) 
{
@@ -7694,6 +7672,11 @@ sub convert($$)
 
   if (!defined($tree_units)) {
     $result = $self->_convert($root);
+    # FIXME API unclean
+    $result .= &{$self->{'format_footnotes_text'}}($self);
+    $result .= $self->get_conf('DEFAULT_RULE') ."\n",
+      if ($self->get_conf('PROGRAM_NAME_IN_FOOTER')
+          and defined($self->get_conf('DEFAULT_RULE')));
   } else {
     foreach my $tree_unit (@$tree_units) {
       my $tree_unit_text = $self->_convert($tree_unit);
@@ -8082,6 +8065,11 @@ sub output($$)
     } else {
       $body .= $self->_print_title();
       $body .= $self->_convert($root);
+    # FIXME API unclean
+      $body .= &{$self->{'format_footnotes_text'}}($self);
+      $body .= $self->get_conf('DEFAULT_RULE') ."\n",
+        if ($self->get_conf('PROGRAM_NAME_IN_FOOTER')
+          and defined($self->get_conf('DEFAULT_RULE')));
     }
 
     my $header = &{$self->{'format_begin_file'}}($self, $output_filename, 
undef);
diff --git a/tp/Texinfo/Convert/TexinfoXML.pm b/tp/Texinfo/Convert/TexinfoXML.pm
index 55781d7caf..a993634a5d 100644
--- a/tp/Texinfo/Convert/TexinfoXML.pm
+++ b/tp/Texinfo/Convert/TexinfoXML.pm
@@ -1012,13 +1012,13 @@ sub _convert($$;$)
       } elsif ($type eq 'skipline') {
         # the command associated with an element is closed at the end of the
         # element. @bye is withing the element, but we want it to appear after
-        # the comand closing.  So we delay the output of @bye, and store it.
+        # the command closing.  So we delay the output of @bye, and store it.
         if ($cmdname eq 'bye' and $element->{'parent'}
             and $element->{'parent'}->{'type'}
             and $element->{'parent'}->{'type'} eq 'unit'
-            and !($element->{'parent'}->{'extra'}
-                  and ($element->{'parent'}->{'extra'}->{'no_section'}
-                       or $element->{'parent'}->{'extra'}->{'no_node'}))) {
+            and !(not defined $element->{'parent'}->{'extra'}->{'section'}
+                  or ($element->{'parent'}->{'extra'}
+                      and $element->{'parent'}->{'extra'}->{'no_node'}))) {
           $self->{'pending_bye'} = $self->open_element($cmdname)
                     .$self->close_element($cmdname)."\n";
           return '';
diff --git a/tp/Texinfo/Structuring.pm b/tp/Texinfo/Structuring.pm
index c820f229e3..c5649e38d7 100644
--- a/tp/Texinfo/Structuring.pm
+++ b/tp/Texinfo/Structuring.pm
@@ -895,15 +895,12 @@ sub split_by_node($)
 sub split_by_section($)
 {
   my $root = shift;
-  if (no_root_command_tree($root)) {
-    return undef;
-  }
   my $tree_units;
-  my $current = { 'type' => 'unit', 'extra' => {'no_section' => 1}};
+  my $current = { 'type' => 'unit' };
   push @$tree_units, $current;
   foreach my $content (@{$root->{'contents'}}) {
     if ($content->{'cmdname'}
-        and (($content->{'cmdname'} eq 'node' 
+        and (($content->{'cmdname'} eq 'node'
               and $content->{'extra'}->{'associated_section'})
              or ($content->{'cmdname'} eq 'part'
                  and $content->{'extra'}->{'part_associated_section'}))) {
@@ -913,26 +910,24 @@ sub split_by_section($)
       } else {
         $new_section = $content->{'extra'}->{'part_associated_section'};
       }
-      if (! $current->{'extra'}->{'section'}
+      if (not defined($current->{'extra'})
+               or not defined($current->{'extra'}->{'section'})) {
+        $current->{'extra'}->{'section'} = $new_section;
+        $current->{'extra'}->{'unit_command'} = $new_section;
+      } elsif (!$current->{'extra'}->{'section'}
         or $new_section ne $current->{'extra'}->{'section'}) {
-        if ($current->{'extra'}->{'no_section'}) {
-          delete $current->{'extra'}->{'no_section'};
-          $current->{'extra'}->{'section'}
-            = $new_section;
-        } else {
-          $current = { 'type' => 'unit',
-                       'extra' => {'section' => $new_section}};
-          $current->{'unit_prev'} = $tree_units->[-1];
-          $tree_units->[-1]->{'unit_next'} = $current;
-          push @$tree_units, $current;
-        }
-        $tree_units->[-1]->{'extra'}->{'unit_command'}
-          = $new_section;
+        $current = { 'type' => 'unit',
+                     'extra' => {'section' => $new_section,
+                                 'unit_command' => $new_section}};
+        $current->{'unit_prev'} = $tree_units->[-1];
+        $tree_units->[-1]->{'unit_next'} = $current;
+        push @$tree_units, $current;
       }
-    } elsif ($content->{'cmdname'} and $content->{'cmdname'} ne 'node' 
+    } elsif ($content->{'cmdname'} and $content->{'cmdname'} ne 'node'
                                    and $content->{'cmdname'} ne 'bye') {
-      if ($current->{'extra'}->{'no_section'}) {
-        delete $current->{'extra'}->{'no_section'};
+      # FIXME check that it is a sectioning command?
+      if (not defined($current->{'extra'})
+               or not defined($current->{'extra'}->{'section'})) {
         $current->{'extra'}->{'section'} = $content;
         $current->{'extra'}->{'unit_command'} = $content;
       } elsif ($current->{'extra'}->{'section'} ne $content) {
@@ -943,7 +938,7 @@ sub split_by_section($)
         push @$tree_units, $current;
       }
     }
-    if ($content->{'cmdname'} and $content->{'cmdname'} eq 'node' 
+    if ($content->{'cmdname'} and $content->{'cmdname'} eq 'node'
         and $content->{'extra'}->{'associated_section'}) {
       $current->{'extra'}->{'node'} = $content;
     }
@@ -953,8 +948,8 @@ sub split_by_section($)
   return $tree_units;
 }
 
-# Associate top-level elements with pages according to the splitting 
-# specification.  Set 'first_in_page' on each top-level element to the element 
+# Associate top-level elements with pages according to the splitting
+# specification.  Set 'first_in_page' on each top-level element to the element
 # that is the first in the output page.
 sub split_pages ($$)
 {
@@ -2102,8 +2097,7 @@ lone nodes are associated with the previous sections and 
lone sections
 makes up a tree unit.
 
 The extra hash keys set are the same, except that I<unit_command> is
-the sectioning command associated with the element, and I<no_node> is 
-replaced by I<no_section>.
+the sectioning command associated with the element.
 
 =item $pages = split_pages($tree_units, $split)
 
diff --git a/tp/t/results/converters_tests/at_commands_in_raw.pl 
b/tp/t/results/converters_tests/at_commands_in_raw.pl
index f72ad7cf26..2c303d01ca 100644
--- a/tp/t/results/converters_tests/at_commands_in_raw.pl
+++ b/tp/t/results/converters_tests/at_commands_in_raw.pl
@@ -1261,7 +1261,8 @@ $result_converted{'html_text'}->{'at_commands_in_raw'} = 
'<h1 class="node-headin
 <h5><a id="FOOT2" href="#DOCF2">(2)</a></h5>
 <p>second footnote</p>
 </div>
-<hr>';
+<hr>
+';
 
 
 $result_converted{'xml'}->{'at_commands_in_raw'} = '<node name="Top" spaces=" 
"><nodename>Top</nodename></node>
diff --git a/tp/t/results/converters_tests/complex_nestings.pl 
b/tp/t/results/converters_tests/complex_nestings.pl
index 6a15ef7e95..75910b2202 100644
--- a/tp/t/results/converters_tests/complex_nestings.pl
+++ b/tp/t/results/converters_tests/complex_nestings.pl
@@ -1483,7 +1483,8 @@ explanation
 <pre class="example">
 
 </pre></div>
-<hr>';
+<hr>
+';
 
 
 $result_converted{'xml'}->{'complex_nestings'} = '<node name="Top" spaces=" 
"><nodename>Top</nodename></node>
diff --git a/tp/t/results/converters_tests/footnote_no_number.pl 
b/tp/t/results/converters_tests/footnote_no_number.pl
index 9e034ff97f..9f22b36dab 100644
--- a/tp/t/results/converters_tests/footnote_no_number.pl
+++ b/tp/t/results/converters_tests/footnote_no_number.pl
@@ -242,7 +242,8 @@ $result_converted{'html_text'}->{'footnote_no_number'} = 
'<h1 class="node-headin
 <h5><a id="FOOT2" href="#DOCF2">(*)</a></h5>
 <p>Footnote 2.</p>
 </div>
-<hr>';
+<hr>
+';
 
 
 $result_converted{'xml'}->{'footnote_no_number'} = '<node name="Top" spaces=" 
"><nodename>Top</nodename></node>
diff --git a/tp/t/results/converters_tests/footnote_no_number_separate.pl 
b/tp/t/results/converters_tests/footnote_no_number_separate.pl
index e149799c32..5a8a4aa580 100644
--- a/tp/t/results/converters_tests/footnote_no_number_separate.pl
+++ b/tp/t/results/converters_tests/footnote_no_number_separate.pl
@@ -240,7 +240,8 @@ 
$result_converted{'html_text'}->{'footnote_no_number_separate'} = '<h1 class="no
 <h5><a id="FOOT2" href="#DOCF2">(*)</a></h5>
 <p>Footnote 2.</p>
 </div>
-<hr>';
+<hr>
+';
 
 
 $result_converted{'xml'}->{'footnote_no_number_separate'} = '<node name="Top" 
spaces=" "><nodename>Top</nodename></node>
diff --git a/tp/t/results/converters_tests/image_formatting.pl 
b/tp/t/results/converters_tests/image_formatting.pl
index 205d2f8db9..837ab0f725 100644
--- a/tp/t/results/converters_tests/image_formatting.pl
+++ b/tp/t/results/converters_tests/image_formatting.pl
@@ -2601,7 +2601,8 @@ $result_converted{'html_text'}->{'image_formatting'} = 
'<h1 class="node-heading"
 
 <p>in para
 <img src="f--ile.png" alt="a very long alt argument that could span more than 
one line who knows">.
-</p><hr>';
+</p><hr>
+';
 
 $result_converted_errors{'html_text'}->{'image_formatting'} = [
   {
diff --git a/tp/t/results/converters_tests/index_entry_in_preformatted.pl 
b/tp/t/results/converters_tests/index_entry_in_preformatted.pl
index a51e2bd2e8..00633af527 100644
--- a/tp/t/results/converters_tests/index_entry_in_preformatted.pl
+++ b/tp/t/results/converters_tests/index_entry_in_preformatted.pl
@@ -384,7 +384,8 @@ 
$result_converted{'html_text'}->{'index_entry_in_preformatted'} = '<h1 class="no
 
 <a class="index-entry-anchor" id="index-other"></a>text2
 <a class="index-entry-anchor" id="index-last"></a></pre></div>
-<hr>';
+<hr>
+';
 
 
 $result_converted{'xml'}->{'index_entry_in_preformatted'} = '<node name="Top" 
spaces=" "><nodename>Top</nodename></node>
diff --git 
a/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl 
b/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl
index d7119270c0..dd6b62ba83 100644
--- a/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl
+++ b/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl
@@ -831,7 +831,8 @@ 
$result_converted{'html_text'}->{'printindex_merged_indices_code_style'} = '<h1
 <a class="summary-letter" href="#t_h_fn_letter-V"><b>V</b></a>
  &nbsp; 
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 
 $result_converted{'xml'}->{'printindex_merged_indices_code_style'} = '<node 
name="Top" spaces=" "><nodename>Top</nodename></node>
diff --git a/tp/t/results/converters_tests/refs_formatting.pl 
b/tp/t/results/converters_tests/refs_formatting.pl
index 25098efe59..88eea966fc 100644
--- a/tp/t/results/converters_tests/refs_formatting.pl
+++ b/tp/t/results/converters_tests/refs_formatting.pl
@@ -4501,7 +4501,8 @@ $result_converted{'html_text'}->{'refs_formatting'} = 
'<div class="chapter" id="
 <code>@inforef{chapter}</code> See &lsquo;chapter&rsquo;
 <code>@inforef{chapter, cross ref name}</code> See &lsquo;cross ref name&rsquo;
 <code>@inforef{chapter,,file name}</code> See <a data-manual="file name" 
href="file name.html#chapter">(file name)chapter</a>
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/converters_tests/things_before_setfilename.pl 
b/tp/t/results/converters_tests/things_before_setfilename.pl
index c0b8e21d6d..a2cb7c87bc 100644
--- a/tp/t/results/converters_tests/things_before_setfilename.pl
+++ b/tp/t/results/converters_tests/things_before_setfilename.pl
@@ -1553,7 +1553,8 @@ ul.no-bullet {list-style: none}
 <p>Ref to footnote anchor
 <a href="#Anchor-in-footnote">Anchor in footnote</a>
 </p>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/coverage/punctuation_in_line_commands.pl 
b/tp/t/results/coverage/punctuation_in_line_commands.pl
index 6a3ab041c1..348d892dbb 100644
--- a/tp/t/results/coverage/punctuation_in_line_commands.pl
+++ b/tp/t/results/coverage/punctuation_in_line_commands.pl
@@ -1260,7 +1260,8 @@ 
$result_converted{'html_text'}->{'punctuation_in_line_commands'} = '
 </td></tr></table>
 
 
-<hr></div>
+<hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/coverage_braces/footnote_no_node.pl 
b/tp/t/results/coverage_braces/footnote_no_node.pl
index 56b49f0ad6..67280843ac 100644
--- a/tp/t/results/coverage_braces/footnote_no_node.pl
+++ b/tp/t/results/coverage_braces/footnote_no_node.pl
@@ -165,7 +165,8 @@ $result_converted{'html_text'}->{'footnote_no_node'} = 
'<div class="top" id="top
 <h5><a id="FOOT1" href="#DOCF1">(1)</a></h5>
 <p>In footnote</p>
 </div>
-<hr></div>
+<hr>
+</div>
 ';
 
 1;
diff --git a/tp/t/results/coverage_braces/inforef_too_much_args.pl 
b/tp/t/results/coverage_braces/inforef_too_much_args.pl
index 472deca97d..c6ea596acb 100644
--- a/tp/t/results/coverage_braces/inforef_too_much_args.pl
+++ b/tp/t/results/coverage_braces/inforef_too_much_args.pl
@@ -197,6 +197,7 @@ $result_converted{'plaintext'}->{'inforef_too_much_args'} = 
'*note cross ref nam
 $result_converted{'html_text'}->{'inforef_too_much_args'} = '<h4 
class="node-heading" id="chapter">chapter</h4>
 
 <p>See <a data-manual="file name, spurious arg" href="file name, spurious 
arg.html#chapter">(file name, spurious arg)cross ref name</a>
-</p><hr>';
+</p><hr>
+';
 
 1;
diff --git a/tp/t/results/coverage_braces/test_image.pl 
b/tp/t/results/coverage_braces/test_image.pl
index eab602a82a..37e5f90492 100644
--- a/tp/t/results/coverage_braces/test_image.pl
+++ b/tp/t/results/coverage_braces/test_image.pl
@@ -3998,6 +3998,7 @@ In text <img src="f@i--le..  a@&lt;&quot;%@  &lt; &amp; @ 
% &quot; .ext@i--le..
 <hr>
 
 
+
 </body>
 </html>
 ';
@@ -4236,7 +4237,8 @@ In text <img src="f@i--le..  a@&lt;&quot;%@  &lt; &amp; @ 
% &quot; .ext@i--le..
 &lt;&quot;%@  &lt; &amp; @ % &quot; ">.</p></dd>
 </dl>
 
-<hr>';
+<hr>
+';
 
 $result_converted_errors{'html_text'}->{'test_image'} = [
   {
diff --git a/tp/t/results/coverage_braces/verb_in_xref.pl 
b/tp/t/results/coverage_braces/verb_in_xref.pl
index b387d90758..10795b4349 100644
--- a/tp/t/results/coverage_braces/verb_in_xref.pl
+++ b/tp/t/results/coverage_braces/verb_in_xref.pl
@@ -239,6 +239,7 @@ $result_converted{'html_text'}->{'verb_in_xref'} = '<h1 
class="node-heading" id=
 verb
 
 ggg </tt></a>.
-</p><hr>';
+</p><hr>
+';
 
 1;
diff --git a/tp/t/results/def/all_commands_delimiters_printindex.pl 
b/tp/t/results/def/all_commands_delimiters_printindex.pl
index 87ac5435db..211f27912d 100644
--- a/tp/t/results/def/all_commands_delimiters_printindex.pl
+++ b/tp/t/results/def/all_commands_delimiters_printindex.pl
@@ -16444,6 +16444,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/def/all_commands_printindex.pl 
b/tp/t/results/def/all_commands_printindex.pl
index bf9774c504..0d28be8453 100644
--- a/tp/t/results/def/all_commands_printindex.pl
+++ b/tp/t/results/def/all_commands_printindex.pl
@@ -6142,6 +6142,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/def/space_in_def_for_index.pl 
b/tp/t/results/def/space_in_def_for_index.pl
index 11d19714d7..b0a8f5ef70 100644
--- a/tp/t/results/def/space_in_def_for_index.pl
+++ b/tp/t/results/def/space_in_def_for_index.pl
@@ -605,6 +605,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/float/anchor_in_caption.pl 
b/tp/t/results/float/anchor_in_caption.pl
index c245480ab6..e69fd5ad9b 100644
--- a/tp/t/results/float/anchor_in_caption.pl
+++ b/tp/t/results/float/anchor_in_caption.pl
@@ -473,6 +473,7 @@ ul.no-bullet {list-style: none}
 <div class="float-caption"><p><strong>fl 1: </strong>in caption<a 
class="anchor" id="in-anchor"></a></p></div></div><hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/float/cindex_in_caption.pl 
b/tp/t/results/float/cindex_in_caption.pl
index af6bc5238b..14152c101d 100644
--- a/tp/t/results/float/cindex_in_caption.pl
+++ b/tp/t/results/float/cindex_in_caption.pl
@@ -584,6 +584,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/float/comment_space_comand_in_float.pl 
b/tp/t/results/float/comment_space_comand_in_float.pl
index 54df4191a8..3cc7c216e0 100644
--- a/tp/t/results/float/comment_space_comand_in_float.pl
+++ b/tp/t/results/float/comment_space_comand_in_float.pl
@@ -447,6 +447,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/float/footnote_in_caption.pl 
b/tp/t/results/float/footnote_in_caption.pl
index f1f5e24234..4383ce8624 100644
--- a/tp/t/results/float/footnote_in_caption.pl
+++ b/tp/t/results/float/footnote_in_caption.pl
@@ -492,6 +492,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/float/footnote_in_caption_and_error.pl 
b/tp/t/results/float/footnote_in_caption_and_error.pl
index 1d056833ec..04e2d435ca 100644
--- a/tp/t/results/float/footnote_in_caption_and_error.pl
+++ b/tp/t/results/float/footnote_in_caption_and_error.pl
@@ -479,6 +479,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/formats_encodings/accent.pl 
b/tp/t/results/formats_encodings/accent.pl
index 4e8e8ef6cf..c1137101db 100644
--- a/tp/t/results/formats_encodings/accent.pl
+++ b/tp/t/results/formats_encodings/accent.pl
@@ -3326,7 +3326,8 @@ $result_converted{'html_text'}->{'accent'} = '<div 
class="top" id="Top-node">
 <p>should be dotless j^: &#309;
 </p>
 <p>should be dotless j&quot;: j&#776;
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/formats_encodings/accent_enable_encoding.pl 
b/tp/t/results/formats_encodings/accent_enable_encoding.pl
index d8faa98656..e121dd1f51 100644
--- a/tp/t/results/formats_encodings/accent_enable_encoding.pl
+++ b/tp/t/results/formats_encodings/accent_enable_encoding.pl
@@ -3326,7 +3326,8 @@ 
$result_converted{'html_text'}->{'accent_enable_encoding'} = '<div class="top" i
 <p>should be dotless j^: ĵ
 </p>
 <p>should be dotless j&quot;: j̈
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/formats_encodings/accentenc.pl 
b/tp/t/results/formats_encodings/accentenc.pl
index cf54f58cc7..3a090b9e77 100644
--- a/tp/t/results/formats_encodings/accentenc.pl
+++ b/tp/t/results/formats_encodings/accentenc.pl
@@ -3372,7 +3372,8 @@ $result_converted{'html_text'}->{'accentenc'} = '
 <p>should be dotless j^: &#309;
 </p>
 <p>should be dotless j&quot;: j&#776;
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/formats_encodings/accentenc_enable_encoding.pl 
b/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
index 9c972e7584..59cf92d647 100644
--- a/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
+++ b/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
@@ -3293,7 +3293,8 @@ 
$result_converted{'html_text'}->{'accentenc_enable_encoding'} = '
 <p>should be dotless j^: &#309;
 </p>
 <p>should be dotless j&quot;: j&#776;
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 1;
diff --git a/tp/t/results/formats_encodings/weird_accents.pl 
b/tp/t/results/formats_encodings/weird_accents.pl
index 895a6bf70e..194cfdc22a 100644
--- a/tp/t/results/formats_encodings/weird_accents.pl
+++ b/tp/t/results/formats_encodings/weird_accents.pl
@@ -656,7 +656,8 @@ $result_converted{'html_text'}->{'weird_accents'} = '
 <p>r&#768;&#803;&#770;
 </p>
 <p>r&#768;&#769;&#772;
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl 
b/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl
index 378ff564f6..5f3850422e 100644
--- a/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl
+++ b/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl
@@ -656,7 +656,8 @@ 
$result_converted{'html_text'}->{'weird_accents_disable_encoding'} = '
 <p>r&#768;&#803;&#770;
 </p>
 <p>r&#768;&#769;&#772;
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/formatting/cond.pl b/tp/t/results/formatting/cond.pl
index 6cb8649819..d1bdeae742 100644
--- a/tp/t/results/formatting/cond.pl
+++ b/tp/t/results/formatting/cond.pl
@@ -516,7 +516,8 @@ This is html text.
 
 <p>This is ifnottex text.
 </p>
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl 
b/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl
index 50ad38b5ca..078fed6102 100644
--- a/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl
+++ b/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl
@@ -534,7 +534,8 @@ This is tex text.
 <p>This is iftex text.
 </p>
 
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl 
b/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl
index c1cd0fbf2e..6d9d337543 100644
--- a/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl
+++ b/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl
@@ -498,7 +498,8 @@ ul.no-bullet {list-style: none}
 
 <p>This is ifnottex text.
 </p>
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git 
a/tp/t/results/formatting/documentlanguage_set_option/res_html/documentlanguage_set.html
 
b/tp/t/results/formatting/documentlanguage_set_option/res_html/documentlanguage_set.html
index f280d25d8c..315ec53867 100644
--- 
a/tp/t/results/formatting/documentlanguage_set_option/res_html/documentlanguage_set.html
+++ 
b/tp/t/results/formatting/documentlanguage_set_option/res_html/documentlanguage_set.html
@@ -54,7 +54,8 @@ ul.no-bullet {list-style: none}
 
 <p>Text.
 </p>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">Ce document a &eacute;t&eacute; 
g&eacute;n&eacute;r&eacute; <em>a sunny day</em> en utilisant <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/t/results/formatting/documentlanguage_set_unknown/res_html/documentlanguage_set.html
 
b/tp/t/results/formatting/documentlanguage_set_unknown/res_html/documentlanguage_set.html
index 5b7c3442cf..a64beae2c1 100644
--- 
a/tp/t/results/formatting/documentlanguage_set_unknown/res_html/documentlanguage_set.html
+++ 
b/tp/t/results/formatting/documentlanguage_set_unknown/res_html/documentlanguage_set.html
@@ -54,7 +54,8 @@ ul.no-bullet {list-style: none}
 
 <p>Text.
 </p>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/t/results/formatting/simplest_test_date_in_header/res_html/simplest.html 
b/tp/t/results/formatting/simplest_test_date_in_header/res_html/simplest.html
index a5739a30fa..885d2f5877 100644
--- 
a/tp/t/results/formatting/simplest_test_date_in_header/res_html/simplest.html
+++ 
b/tp/t/results/formatting/simplest_test_date_in_header/res_html/simplest.html
@@ -51,7 +51,8 @@ ul.no-bullet {list-style: none}
 <a class="node-anchor" id="Top"></a>
 <p>This is a very simple texi manual &nbsp; &lt;&gt;.
 </p>
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/t/results/formatting/simplest_test_prefix/res_html/truc.html 
b/tp/t/results/formatting/simplest_test_prefix/res_html/truc.html
index a09d8723f8..350ee28935 100644
--- a/tp/t/results/formatting/simplest_test_prefix/res_html/truc.html
+++ b/tp/t/results/formatting/simplest_test_prefix/res_html/truc.html
@@ -50,7 +50,8 @@ ul.no-bullet {list-style: none}
 <a class="node-anchor" id="Top"></a>
 <p>This is a very simple texi manual &nbsp; &lt;&gt;.
 </p>
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/t/results/formatting/texi_cond.pl 
b/tp/t/results/formatting/texi_cond.pl
index 25a28e649a..7f5249ec63 100644
--- a/tp/t/results/formatting/texi_cond.pl
+++ b/tp/t/results/formatting/texi_cond.pl
@@ -516,7 +516,8 @@ This is html text.
 
 <p>This is ifnottex text.
 </p>
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/t/results/heading/heading_in_copying.pl 
b/tp/t/results/heading/heading_in_copying.pl
index 064788be0e..d1e892d8b7 100644
--- a/tp/t/results/heading/heading_in_copying.pl
+++ b/tp/t/results/heading/heading_in_copying.pl
@@ -475,6 +475,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/html_tests/character_number_leading_toc_stoc.pl 
b/tp/t/results/html_tests/character_number_leading_toc_stoc.pl
index c3dbb455d9..93437e25af 100644
--- a/tp/t/results/html_tests/character_number_leading_toc_stoc.pl
+++ b/tp/t/results/html_tests/character_number_leading_toc_stoc.pl
@@ -385,7 +385,8 @@ ul.no-bullet {list-style: none}
 
 
 
-<hr></div>
+<hr>
+</div>
 </div>
 </div>
 
diff --git a/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl 
b/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
index 6e5b983789..74f2277ae8 100644
--- a/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
+++ b/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
@@ -829,7 +829,8 @@ ul.no-bullet {list-style: none}
 <dd><p>do something with input
 </p></dd></dl>
 
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl 
b/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
index e227cc06ef..93d6f9fe48 100644
--- a/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
+++ b/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
@@ -771,7 +771,8 @@ ul.no-bullet {list-style: none}
 <dd><p>do something with input
 </p></dd></dl>
 
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/documentdescription.pl 
b/tp/t/results/html_tests/documentdescription.pl
index ba2296dde0..76298cebc3 100644
--- a/tp/t/results/html_tests/documentdescription.pl
+++ b/tp/t/results/html_tests/documentdescription.pl
@@ -456,7 +456,8 @@ ul.no-bullet {list-style: none}
 
 <div class="top" id="top">
 <h1 class="top">top</h1>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl 
b/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl
index bab038e3a3..0007fac6aa 100644
--- a/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl
+++ b/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl
@@ -295,7 +295,8 @@ ul.no-bullet {list-style: none}
 <div class="top" id="Top">
 <h1 class="top" id="top">top</h1>
 
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/html_in_copying.pl 
b/tp/t/results/html_tests/html_in_copying.pl
index 481169f539..34fb1ad8af 100644
--- a/tp/t/results/html_tests/html_in_copying.pl
+++ b/tp/t/results/html_tests/html_in_copying.pl
@@ -401,7 +401,8 @@ ul.no-bullet {list-style: none}
 <div class="top" id="Top">
 <h1 class="top" id="top">top</h1>
 
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/index_and_node_same_name.pl 
b/tp/t/results/html_tests/index_and_node_same_name.pl
index 3bda1a2a0f..fca47d25c6 100644
--- a/tp/t/results/html_tests/index_and_node_same_name.pl
+++ b/tp/t/results/html_tests/index_and_node_same_name.pl
@@ -323,7 +323,8 @@ ul.no-bullet {list-style: none}
  &nbsp; 
 </td></tr></table>
 
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/html_tests/shortcontents_no_top.pl 
b/tp/t/results/html_tests/shortcontents_no_top.pl
index 04b76dc7f7..1953d0f8a2 100644
--- a/tp/t/results/html_tests/shortcontents_no_top.pl
+++ b/tp/t/results/html_tests/shortcontents_no_top.pl
@@ -302,7 +302,8 @@ ul.no-bullet {list-style: none}
 </ul>
 </div>
 </div>
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/html_tests/simple_menu.pl 
b/tp/t/results/html_tests/simple_menu.pl
index 8dc9aff685..af7292f4f7 100644
--- a/tp/t/results/html_tests/simple_menu.pl
+++ b/tp/t/results/html_tests/simple_menu.pl
@@ -2278,7 +2278,8 @@ ul.no-bullet {list-style: none}
 
 <div class="top" id="Top">
 <a class="top-anchor" id="SEC_Top"></a>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git 
a/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl 
b/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl
index 33054e97ae..859cf8f6c8 100644
--- a/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl
+++ b/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl
@@ -391,7 +391,8 @@ ul.no-bullet {list-style: none}
 <h2 class="chapter">1 the chap</h2>
 
 
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git 
a/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl 
b/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl
index a0d9c482d4..9a00412740 100644
--- a/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl
+++ b/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl
@@ -389,7 +389,8 @@ ul.no-bullet {list-style: none}
 <h2 class="chapter">1 the chap</h2>
 
 
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/html_tests/titles.pl 
b/tp/t/results/html_tests/titles.pl
index 9d502c7450..4f8d61f0b7 100644
--- a/tp/t/results/html_tests/titles.pl
+++ b/tp/t/results/html_tests/titles.pl
@@ -461,7 +461,8 @@ ul.no-bullet {list-style: none}
 <p>Top.
 </p>
 <p>Second paragraph.
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git 
a/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl 
b/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl
index 730f2ed59f..c2a27b3fcc 100644
--- a/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl
+++ b/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl
@@ -398,6 +398,7 @@ 
$result_converted{'html_text'}->{'default_cp_index_and_one_letter_syncodeindex'}
 </table>
 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#t_h_fn_symbol-1"><b>-</b></a>
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/double_syncodeindex.pl 
b/tp/t/results/indices/double_syncodeindex.pl
index c735934166..5b28782d2d 100644
--- a/tp/t/results/indices/double_syncodeindex.pl
+++ b/tp/t/results/indices/double_syncodeindex.pl
@@ -488,6 +488,7 @@ $result_converted{'html_text'}->{'double_syncodeindex'} = '
 <a class="summary-letter" href="#t_h_fn_letter-F"><b>F</b></a>
  &nbsp; 
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/empty_cindex_entry.pl 
b/tp/t/results/indices/empty_cindex_entry.pl
index 7aaaba8fe4..e6793e1d18 100644
--- a/tp/t/results/indices/empty_cindex_entry.pl
+++ b/tp/t/results/indices/empty_cindex_entry.pl
@@ -152,6 +152,7 @@ $result_converted{'plaintext'}->{'empty_cindex_entry'} = '';
 
 
 $result_converted{'html_text'}->{'empty_cindex_entry'} = '<h1 
class="node-heading" id="Top">Top</h1>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/empty_index_entry.pl 
b/tp/t/results/indices/empty_index_entry.pl
index 10af222251..eb8a0429f6 100644
--- a/tp/t/results/indices/empty_index_entry.pl
+++ b/tp/t/results/indices/empty_index_entry.pl
@@ -321,6 +321,7 @@ $result_converted{'html_text'}->{'empty_index_entry'} = 
'<h1 class="node-heading
 <dt><span class="category">: </span><strong></strong></dt>
 </dl>
 
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/empty_string_index_entry.pl 
b/tp/t/results/indices/empty_string_index_entry.pl
index 5b56e36df9..c91a6ddcd4 100644
--- a/tp/t/results/indices/empty_string_index_entry.pl
+++ b/tp/t/results/indices/empty_string_index_entry.pl
@@ -931,7 +931,8 @@ 
$result_converted{'html_text'}->{'empty_string_index_entry'} = '<h1 class="node-
 <dt id="index--3"><span class="category">Function: </span><span><strong><!-- 
/@w --></strong> <em> </em><a href=\'#index--3\' class=\'copiable-anchor\'> 
&para;</a></span></dt>
 </dl>
 
-<hr>';
+<hr>
+';
 
 $result_converted_errors{'html_text'}->{'empty_string_index_entry'} = [
   {
diff --git a/tp/t/results/indices/encoding_index_ascii/res_html/index.html 
b/tp/t/results/indices/encoding_index_ascii/res_html/index.html
index d305b88579..a7835020ec 100644
--- a/tp/t/results/indices/encoding_index_ascii/res_html/index.html
+++ b/tp/t/results/indices/encoding_index_ascii/res_html/index.html
@@ -386,7 +386,8 @@ ul.no-bullet {list-style: none}
 <a class="summary-letter" href="#Top_cp_letter-Z"><b>Z</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git 
a/tp/t/results/indices/encoding_index_ascii_enable_encoding/res_html/index.html 
b/tp/t/results/indices/encoding_index_ascii_enable_encoding/res_html/index.html
index d305b88579..a7835020ec 100644
--- 
a/tp/t/results/indices/encoding_index_ascii_enable_encoding/res_html/index.html
+++ 
b/tp/t/results/indices/encoding_index_ascii_enable_encoding/res_html/index.html
@@ -386,7 +386,8 @@ ul.no-bullet {list-style: none}
 <a class="summary-letter" href="#Top_cp_letter-Z"><b>Z</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/indices/encoding_index_latin1/res_html/index.html 
b/tp/t/results/indices/encoding_index_latin1/res_html/index.html
index fd0a039bfa..578d931283 100644
--- a/tp/t/results/indices/encoding_index_latin1/res_html/index.html
+++ b/tp/t/results/indices/encoding_index_latin1/res_html/index.html
@@ -391,7 +391,8 @@ ul.no-bullet {list-style: none}
 <a class="summary-letter" href="#Top_cp_letter-�"><b>�</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git 
a/tp/t/results/indices/encoding_index_latin1_enable_encoding/res_html/index.html
 
b/tp/t/results/indices/encoding_index_latin1_enable_encoding/res_html/index.html
index 6c9090b060..8ecccb7bf3 100644
--- 
a/tp/t/results/indices/encoding_index_latin1_enable_encoding/res_html/index.html
+++ 
b/tp/t/results/indices/encoding_index_latin1_enable_encoding/res_html/index.html
@@ -433,7 +433,8 @@ ul.no-bullet {list-style: none}
 <a class="summary-letter" href="#Top_cp_letter-�"><b>�</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/indices/encoding_index_utf8/res_html/index.html 
b/tp/t/results/indices/encoding_index_utf8/res_html/index.html
index c8b122e779..86c8679c5c 100644
--- a/tp/t/results/indices/encoding_index_utf8/res_html/index.html
+++ b/tp/t/results/indices/encoding_index_utf8/res_html/index.html
@@ -391,7 +391,8 @@ ul.no-bullet {list-style: none}
 <a class="summary-letter" href="#Top_cp_letter-É"><b>É</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git 
a/tp/t/results/indices/encoding_index_utf8_enable_encoding/res_html/index.html 
b/tp/t/results/indices/encoding_index_utf8_enable_encoding/res_html/index.html
index b34d613f53..ac1eb84240 100644
--- 
a/tp/t/results/indices/encoding_index_utf8_enable_encoding/res_html/index.html
+++ 
b/tp/t/results/indices/encoding_index_utf8_enable_encoding/res_html/index.html
@@ -445,7 +445,8 @@ ul.no-bullet {list-style: none}
 <a class="summary-letter" href="#Top_cp_letter-Ł"><b>Ł</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/indices/explicit_sort_key.pl 
b/tp/t/results/indices/explicit_sort_key.pl
index 0f6f10e8c1..b057ca30bf 100644
--- a/tp/t/results/indices/explicit_sort_key.pl
+++ b/tp/t/results/indices/explicit_sort_key.pl
@@ -1050,7 +1050,8 @@ $result_converted{'html_text'}->{'explicit_sort_key'} = 
'<div class="top" id="To
 <a class="summary-letter" href="#t_h_SK_letter-B"><b>B</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 ';
 
 1;
diff --git a/tp/t/results/indices/ftable_vtable.pl 
b/tp/t/results/indices/ftable_vtable.pl
index fd10cca3ed..97992bcbba 100644
--- a/tp/t/results/indices/ftable_vtable.pl
+++ b/tp/t/results/indices/ftable_vtable.pl
@@ -989,6 +989,7 @@ $result_converted{'html_text'}->{'ftable_vtable'} = '
  &nbsp; 
 </td></tr></table>
 
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/image_lines_count.pl 
b/tp/t/results/indices/image_lines_count.pl
index fd32b328df..c0aac5bca8 100644
--- a/tp/t/results/indices/image_lines_count.pl
+++ b/tp/t/results/indices/image_lines_count.pl
@@ -317,6 +317,7 @@ $result_converted{'html_text'}->{'image_lines_count'} = 
'<h1 class="node-heading
 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#t_h_cp_letter-I"><b>I</b></a>
  &nbsp; 
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/image_text_lines_count.pl 
b/tp/t/results/indices/image_text_lines_count.pl
index 2ada4fac06..2e96e6e77b 100644
--- a/tp/t/results/indices/image_text_lines_count.pl
+++ b/tp/t/results/indices/image_text_lines_count.pl
@@ -316,7 +316,8 @@ $result_converted{'html_text'}->{'image_text_lines_count'} 
= '<h1 class="node-he
 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#t_h_cp_letter-I"><b>I</b></a>
  &nbsp; 
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 $result_converted_errors{'html_text'}->{'image_text_lines_count'} = [
   {
diff --git a/tp/t/results/indices/index_entries_locations.pl 
b/tp/t/results/indices/index_entries_locations.pl
index c51b03b255..eefb014cc7 100644
--- a/tp/t/results/indices/index_entries_locations.pl
+++ b/tp/t/results/indices/index_entries_locations.pl
@@ -591,6 +591,7 @@ end paragraph.
 <a class="summary-letter" href="#t_h_cp_letter-L"><b>L</b></a>
  &nbsp; 
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/index_entry_before_first_node.pl 
b/tp/t/results/indices/index_entry_before_first_node.pl
index c137375d20..81c3e52538 100644
Binary files a/tp/t/results/indices/index_entry_before_first_node.pl and 
b/tp/t/results/indices/index_entry_before_first_node.pl differ
diff --git a/tp/t/results/indices/index_entry_in_footnote.pl 
b/tp/t/results/indices/index_entry_in_footnote.pl
index 0c184f40a5..ba1f3eb1a2 100644
--- a/tp/t/results/indices/index_entry_in_footnote.pl
+++ b/tp/t/results/indices/index_entry_in_footnote.pl
@@ -329,6 +329,7 @@ $result_converted{'html_text'}->{'index_entry_in_footnote'} 
= '<h1 class="node-h
 <a class="index-entry-anchor" id="index-index-entry-in-footnote"></a>
 </p>
 </div>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/printindex_with_space_before.pl 
b/tp/t/results/indices/printindex_with_space_before.pl
index e7dcfc070f..69da379785 100644
Binary files a/tp/t/results/indices/printindex_with_space_before.pl and 
b/tp/t/results/indices/printindex_with_space_before.pl differ
diff --git a/tp/t/results/indices/same_index_entry_merged_indices.pl 
b/tp/t/results/indices/same_index_entry_merged_indices.pl
index a97886a794..d0d3a349b9 100644
--- a/tp/t/results/indices/same_index_entry_merged_indices.pl
+++ b/tp/t/results/indices/same_index_entry_merged_indices.pl
@@ -776,7 +776,8 @@ 
$result_converted{'html_text'}->{'same_index_entry_merged_indices'} = '
 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#t_h_fn_letter-M"><b>M</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 ';
 
 1;
diff --git a/tp/t/results/indices/seealso_duplicate.pl 
b/tp/t/results/indices/seealso_duplicate.pl
index b86f0eff97..536c82e455 100644
--- a/tp/t/results/indices/seealso_duplicate.pl
+++ b/tp/t/results/indices/seealso_duplicate.pl
@@ -471,6 +471,7 @@ $result_converted{'html_text'}->{'seealso_duplicate'} = 
'<h1 class="node-heading
 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#t_h_cp_letter-A"><b>A</b></a>
  &nbsp; 
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/syncodeindex_to_plain.pl 
b/tp/t/results/indices/syncodeindex_to_plain.pl
index 3c7ff4cf33..55cec4a2e9 100644
--- a/tp/t/results/indices/syncodeindex_to_plain.pl
+++ b/tp/t/results/indices/syncodeindex_to_plain.pl
@@ -557,6 +557,7 @@ $result_converted{'html_text'}->{'syncodeindex_to_plain'} = 
'
 </table>
 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#t_h_vr_symbol-1"><b>-</b></a>
 </td></tr></table>
-<hr>';
+<hr>
+';
 
 1;
diff --git a/tp/t/results/indices/transparent_sort_chars.pl 
b/tp/t/results/indices/transparent_sort_chars.pl
index a90e68c3fa..276de82b72 100644
--- a/tp/t/results/indices/transparent_sort_chars.pl
+++ b/tp/t/results/indices/transparent_sort_chars.pl
@@ -515,7 +515,8 @@ $result_converted{'html_text'}->{'transparent_sort_chars'} 
= '
 <a class="summary-letter" href="#t_h_cp_letter-V"><b>V</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 ';
 
 1;
diff --git a/tp/t/results/indices/w_lines_count.pl 
b/tp/t/results/indices/w_lines_count.pl
index ef039cb907..bf7de01826 100644
--- a/tp/t/results/indices/w_lines_count.pl
+++ b/tp/t/results/indices/w_lines_count.pl
@@ -467,7 +467,8 @@ $result_converted{'html_text'}->{'w_lines_count'} = '<div 
class="top" id="Top">
 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#t_h_fn_letter-C"><b>C</b></a>
  &nbsp; 
 </td></tr></table>
-<hr></div>
+<hr>
+</div>
 ';
 
 1;
diff --git a/tp/t/results/languages/appendix_translated.pl 
b/tp/t/results/languages/appendix_translated.pl
index 808812c6af..41efb7920e 100644
--- a/tp/t/results/languages/appendix_translated.pl
+++ b/tp/t/results/languages/appendix_translated.pl
@@ -394,7 +394,8 @@ ul.no-bullet {list-style: none}
 <div class="appendix" id="dernier">
 <h2 class="appendix">Annexe A dernier</h2>
 
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/languages/command_translated.pl 
b/tp/t/results/languages/command_translated.pl
index c8fafb5fe3..70a8cde535 100644
--- a/tp/t/results/languages/command_translated.pl
+++ b/tp/t/results/languages/command_translated.pl
@@ -345,7 +345,8 @@ ul.no-bullet {list-style: none}
 <h1 class="top" id="top-error_002d_002d_003e">top erreur&rarr;</h1>
 
 <p>erreur&rarr;
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/languages/multiple.pl 
b/tp/t/results/languages/multiple.pl
index b71dc56406..b7706ab190 100644
--- a/tp/t/results/languages/multiple.pl
+++ b/tp/t/results/languages/multiple.pl
@@ -1143,6 +1143,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/languages/unknown_language.pl 
b/tp/t/results/languages/unknown_language.pl
index 31da191fb3..4d093b91c1 100644
--- a/tp/t/results/languages/unknown_language.pl
+++ b/tp/t/results/languages/unknown_language.pl
@@ -490,7 +490,8 @@ ul.no-bullet {list-style: none}
 </p>
 
 <p>Another unknown language. See <a href="#Top">unknkown language</a>.
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/languages/unknown_region.pl 
b/tp/t/results/languages/unknown_region.pl
index d37b08f97c..db4a782e15 100644
--- a/tp/t/results/languages/unknown_region.pl
+++ b/tp/t/results/languages/unknown_region.pl
@@ -433,6 +433,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/block_commands_in_menu_description.pl 
b/tp/t/results/menu/block_commands_in_menu_description.pl
index 643610d83f..dca0d630b8 100644
--- a/tp/t/results/menu/block_commands_in_menu_description.pl
+++ b/tp/t/results/menu/block_commands_in_menu_description.pl
@@ -901,7 +901,8 @@ Text.
 <pre class="verbatim">
 </pre></td></tr>
 </table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/menu/detailmenu_unknown_node.pl 
b/tp/t/results/menu/detailmenu_unknown_node.pl
index 6d4c40681f..b0c05cba7c 100644
--- a/tp/t/results/menu/detailmenu_unknown_node.pl
+++ b/tp/t/results/menu/detailmenu_unknown_node.pl
@@ -382,6 +382,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/example_in_menu_description.pl 
b/tp/t/results/menu/example_in_menu_description.pl
index 1ec7636193..f2fa06ffa4 100644
--- a/tp/t/results/menu/example_in_menu_description.pl
+++ b/tp/t/results/menu/example_in_menu_description.pl
@@ -533,7 +533,8 @@ example
 <tr><th colspan="3" align="left" valign="top"><pre class="menu-comment">
 
 </pre></th></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/menu/formats_in_menu.pl 
b/tp/t/results/menu/formats_in_menu.pl
index fda576666e..d682341765 100644
--- a/tp/t/results/menu/formats_in_menu.pl
+++ b/tp/t/results/menu/formats_in_menu.pl
@@ -1094,6 +1094,7 @@ Menu comment
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/inlineraw_in_menu_description.pl 
b/tp/t/results/menu/inlineraw_in_menu_description.pl
index e9bae254bf..46ecfb898f 100644
--- a/tp/t/results/menu/inlineraw_in_menu_description.pl
+++ b/tp/t/results/menu/inlineraw_in_menu_description.pl
@@ -502,7 +502,8 @@ end inlineraw
 <tr><th colspan="3" align="left" valign="top"><pre class="menu-comment">
 
 </pre></th></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/menu/invalid_info_menu_entry.pl 
b/tp/t/results/menu/invalid_info_menu_entry.pl
index 38ff8e5fe3..94caa01b4f 100644
--- a/tp/t/results/menu/invalid_info_menu_entry.pl
+++ b/tp/t/results/menu/invalid_info_menu_entry.pl
@@ -944,6 +944,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/menu_in_example.pl 
b/tp/t/results/menu/menu_in_example.pl
index 535512d014..393c60da42 100644
--- a/tp/t/results/menu/menu_in_example.pl
+++ b/tp/t/results/menu/menu_in_example.pl
@@ -796,6 +796,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/menu_pointing_to_anchor.pl 
b/tp/t/results/menu/menu_pointing_to_anchor.pl
index 887b42f0eb..808b27e312 100644
--- a/tp/t/results/menu/menu_pointing_to_anchor.pl
+++ b/tp/t/results/menu/menu_pointing_to_anchor.pl
@@ -475,7 +475,8 @@ ul.no-bullet {list-style: none}
 <tr><td align="left" valign="top">&bull; <a href="#An-anchor" accesskey="1">An 
anchor</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">menu entry 
pointing to the anchor.
 </td></tr>
 </table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/menu/no_colon_in_menu.pl 
b/tp/t/results/menu/no_colon_in_menu.pl
index 8168bd67b6..755c4a4ae4 100644
--- a/tp/t/results/menu/no_colon_in_menu.pl
+++ b/tp/t/results/menu/no_colon_in_menu.pl
@@ -262,6 +262,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/reference_to_external_manual.pl 
b/tp/t/results/menu/reference_to_external_manual.pl
index ae1ca61222..b41fe434f3 100644
--- a/tp/t/results/menu/reference_to_external_manual.pl
+++ b/tp/t/results/menu/reference_to_external_manual.pl
@@ -350,6 +350,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/submenu_in_example.pl 
b/tp/t/results/menu/submenu_in_example.pl
index adb7dadbdd..2f225c1243 100644
--- a/tp/t/results/menu/submenu_in_example.pl
+++ b/tp/t/results/menu/submenu_in_example.pl
@@ -960,6 +960,7 @@ in example
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/menu/verb_in_menu_description.pl 
b/tp/t/results/menu/verb_in_menu_description.pl
index 8487caa4a0..88c483fa3e 100644
--- a/tp/t/results/menu/verb_in_menu_description.pl
+++ b/tp/t/results/menu/verb_in_menu_description.pl
@@ -486,7 +486,8 @@ ul.no-bullet {list-style: none}
 <tr><th colspan="3" align="left" valign="top"><pre class="menu-comment">
 
 </pre></th></tr></table>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git 
a/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl 
b/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl
index 906d26664c..19cd919125 100644
--- a/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl
+++ b/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl
@@ -5376,7 +5376,8 @@ samp: &lsquo;<samp>``simple-double--three---four----\'\' 
`simple\' quotedblleft:
 
 </pre></div>
 
-<hr></div>
+<hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/misc_commands/comment_space_command_on_line.pl 
b/tp/t/results/misc_commands/comment_space_command_on_line.pl
index 463b17b798..5a4d53bea5 100644
--- a/tp/t/results/misc_commands/comment_space_command_on_line.pl
+++ b/tp/t/results/misc_commands/comment_space_command_on_line.pl
@@ -871,7 +871,8 @@ 
$result_converted{'html_text'}->{'comment_space_command_on_line'} = '
 </p><div class="float-caption"><p><strong>Text 1
 </strong></p></div></div>
 
-<hr></div>
+<hr>
+</div>
 ';
 
 
diff --git a/tp/t/results/misc_commands/no_empty_line_between_headings.pl 
b/tp/t/results/misc_commands/no_empty_line_between_headings.pl
index 8ef45ce8d1..bb288a58f6 100644
--- a/tp/t/results/misc_commands/no_empty_line_between_headings.pl
+++ b/tp/t/results/misc_commands/no_empty_line_between_headings.pl
@@ -246,7 +246,8 @@ 
$result_converted{'html_text'}->{'no_empty_line_between_headings'} = '<div class
 </ul>
 <div class="section" id="Section">
 <h3 class="section">1.1 Section</h3>
-<hr></div>
+<hr>
+</div>
 </div>
 </div>
 ';
diff --git a/tp/t/results/misc_commands/ref_in_center.pl 
b/tp/t/results/misc_commands/ref_in_center.pl
index 0eeff807e9..1c1d35e2e5 100644
--- a/tp/t/results/misc_commands/ref_in_center.pl
+++ b/tp/t/results/misc_commands/ref_in_center.pl
@@ -296,7 +296,8 @@ $result_converted{'html_text'}->{'ref_in_center'} = '<h1 
class="node-heading" id
 <div class="center-align">&lsquo;title
 &rsquo;
 </div><p>very long
-</p><hr>';
+</p><hr>
+';
 
 
 $result_converted{'docbook'}->{'ref_in_center'} = '<anchor id="Top"/>
diff --git a/tp/t/results/misc_commands/test_allowcodebreaks.pl 
b/tp/t/results/misc_commands/test_allowcodebreaks.pl
index e4a9296a42..30b36cdff8 100644
--- a/tp/t/results/misc_commands/test_allowcodebreaks.pl
+++ b/tp/t/results/misc_commands/test_allowcodebreaks.pl
@@ -2781,6 +2781,7 @@ anc-hor<a class="anchor" id="A-node2"></a></samp>&rsquo;
 <div class="example">
 <pre class="example"><code>in-example</code>
 </pre></div>
-<hr>';
+<hr>
+';
 
 1;
diff --git 
a/tp/t/results/moreindices/double_index_entry/res_html/double_index_entry.html 
b/tp/t/results/moreindices/double_index_entry/res_html/double_index_entry.html
index 33cf56d472..5dfc4a8d50 100644
--- 
a/tp/t/results/moreindices/double_index_entry/res_html/double_index_entry.html
+++ 
b/tp/t/results/moreindices/double_index_entry/res_html/double_index_entry.html
@@ -77,7 +77,8 @@ ul.no-bullet {list-style: none}
  &nbsp; 
 </td></tr></table>
 
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git 
a/tp/t/results/moreindices/nodes_before_top_no_nodes/res_html/index.html 
b/tp/t/results/moreindices/nodes_before_top_no_nodes/res_html/index.html
index 3b1088e648..4108261396 100644
--- a/tp/t/results/moreindices/nodes_before_top_no_nodes/res_html/index.html
+++ b/tp/t/results/moreindices/nodes_before_top_no_nodes/res_html/index.html
@@ -579,7 +579,8 @@ ul.no-bullet {list-style: none}
  &nbsp; 
 </td></tr></table>
 
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git 
a/tp/t/results/moresectioning/equivalent_nodes_no_node/res_html/equivalent_nodes.html
 
b/tp/t/results/moresectioning/equivalent_nodes_no_node/res_html/equivalent_nodes.html
index 262cfc5e6f..699772668e 100644
--- 
a/tp/t/results/moresectioning/equivalent_nodes_no_node/res_html/equivalent_nodes.html
+++ 
b/tp/t/results/moresectioning/equivalent_nodes_no_node/res_html/equivalent_nodes.html
@@ -68,7 +68,8 @@ ul.no-bullet {list-style: none}
 </p>
 <p>Ref to @samp{node} <a href="#node">node</a>.
 </p>
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git 
a/tp/t/results/moresectioning/node_footnote_end/res_html/node_footnote.html 
b/tp/t/results/moresectioning/node_footnote_end/res_html/node_footnote.html
index 29800ca765..ffd3a1686b 100644
--- a/tp/t/results/moresectioning/node_footnote_end/res_html/node_footnote.html
+++ b/tp/t/results/moresectioning/node_footnote_end/res_html/node_footnote.html
@@ -90,7 +90,8 @@ Footnote 3<a id="DOCF3" href="#FOOT3"><sup>3</sup></a>.
 <h5><a id="FOOT3" href="#DOCF3">(3)</a></h5>
 <p>foot 3 &agrave;</p>
 </div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/t/results/moresectioning/node_footnote_separated/res_html/node_footnote.html
 
b/tp/t/results/moresectioning/node_footnote_separated/res_html/node_footnote.html
index 29800ca765..ffd3a1686b 100644
--- 
a/tp/t/results/moresectioning/node_footnote_separated/res_html/node_footnote.html
+++ 
b/tp/t/results/moresectioning/node_footnote_separated/res_html/node_footnote.html
@@ -90,7 +90,8 @@ Footnote 3<a id="DOCF3" href="#FOOT3"><sup>3</sup></a>.
 <h5><a id="FOOT3" href="#DOCF3">(3)</a></h5>
 <p>foot 3 &agrave;</p>
 </div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/t/results/moresectioning/nodes_after_top_before_chapter/res_html/nodes_after_top_before_chapter.html
 
b/tp/t/results/moresectioning/nodes_after_top_before_chapter/res_html/nodes_after_top_before_chapter.html
index 00bf088836..1c853e6933 100644
--- 
a/tp/t/results/moresectioning/nodes_after_top_before_chapter/res_html/nodes_after_top_before_chapter.html
+++ 
b/tp/t/results/moresectioning/nodes_after_top_before_chapter/res_html/nodes_after_top_before_chapter.html
@@ -63,7 +63,8 @@ ul.no-bullet {list-style: none}
 <h1 class="chapter" id="chapter">1 chapter</h1>
 
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/t/results/moresectioning/nodes_after_top_before_section/res_html/index.html
 
b/tp/t/results/moresectioning/nodes_after_top_before_section/res_html/index.html
index e3c31aaac5..9f9276e20b 100644
--- 
a/tp/t/results/moresectioning/nodes_after_top_before_section/res_html/index.html
+++ 
b/tp/t/results/moresectioning/nodes_after_top_before_section/res_html/index.html
@@ -63,7 +63,8 @@ ul.no-bullet {list-style: none}
 <h3 class="subsection" id="subsection">1 subsection</h3>
 
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/t/results/moresectioning/placed_things_before_element/res_html/placed_things_before_element.html
 
b/tp/t/results/moresectioning/placed_things_before_element/res_html/placed_things_before_element.html
index a7c99e0609..17e7890fc5 100644
--- 
a/tp/t/results/moresectioning/placed_things_before_element/res_html/placed_things_before_element.html
+++ 
b/tp/t/results/moresectioning/placed_things_before_element/res_html/placed_things_before_element.html
@@ -94,7 +94,8 @@ ul.no-bullet {list-style: none}
 <a href="#An-anchor">An anchor</a>
 </p>
 </div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/t/results/regions/anchor_in_copying.pl 
b/tp/t/results/regions/anchor_in_copying.pl
index 0919d0f28f..2b1927dcc3 100644
--- a/tp/t/results/regions/anchor_in_copying.pl
+++ b/tp/t/results/regions/anchor_in_copying.pl
@@ -483,6 +483,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/regions/anchor_in_copying_in_footnote.pl 
b/tp/t/results/regions/anchor_in_copying_in_footnote.pl
index 3ba4b70276..4fad1e4f04 100644
--- a/tp/t/results/regions/anchor_in_copying_in_footnote.pl
+++ b/tp/t/results/regions/anchor_in_copying_in_footnote.pl
@@ -540,6 +540,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/regions/anchor_in_titlepage.pl 
b/tp/t/results/regions/anchor_in_titlepage.pl
index f298967ec7..ce98975c35 100644
--- a/tp/t/results/regions/anchor_in_titlepage.pl
+++ b/tp/t/results/regions/anchor_in_titlepage.pl
@@ -404,7 +404,8 @@ ul.no-bullet {list-style: none}
 <h1 class="node-heading" id="Top">Top</h1>
 
 <p>See <a href="#in-titlepage">in titlepage</a>.
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/regions/anchor_in_titlepage_titlepage.pl 
b/tp/t/results/regions/anchor_in_titlepage_titlepage.pl
index 0fb3e815d2..ffeea25e99 100644
--- a/tp/t/results/regions/anchor_in_titlepage_titlepage.pl
+++ b/tp/t/results/regions/anchor_in_titlepage_titlepage.pl
@@ -406,7 +406,8 @@ ul.no-bullet {list-style: none}
 <h1 class="node-heading" id="Top">Top</h1>
 
 <p>See <a href="#in-titlepage">in titlepage</a>.
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/regions/format_in_titlepage.pl 
b/tp/t/results/regions/format_in_titlepage.pl
index ce3fd1612b..8336df12cb 100644
--- a/tp/t/results/regions/format_in_titlepage.pl
+++ b/tp/t/results/regions/format_in_titlepage.pl
@@ -338,6 +338,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/regions/format_in_titlepage_titlepage.pl 
b/tp/t/results/regions/format_in_titlepage_titlepage.pl
index f2da7eca35..16c8f5c7c8 100644
--- a/tp/t/results/regions/format_in_titlepage_titlepage.pl
+++ b/tp/t/results/regions/format_in_titlepage_titlepage.pl
@@ -344,6 +344,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/regions/today_in_copying.pl 
b/tp/t/results/regions/today_in_copying.pl
index bbdaf93c8b..0061d2f3aa 100644
--- a/tp/t/results/regions/today_in_copying.pl
+++ b/tp/t/results/regions/today_in_copying.pl
@@ -370,7 +370,8 @@ ul.no-bullet {list-style: none}
 <h1 class="top" id="top">top</h1>
 
 <p>a sunny day.
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/anchor_zero.pl 
b/tp/t/results/sectioning/anchor_zero.pl
index ba6cae5a8f..75eedd220d 100644
--- a/tp/t/results/sectioning/anchor_zero.pl
+++ b/tp/t/results/sectioning/anchor_zero.pl
@@ -287,6 +287,7 @@ ul.no-bullet {list-style: none}
 </p><hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/sectioning/chapter_before_and_after_part.pl 
b/tp/t/results/sectioning/chapter_before_and_after_part.pl
index 89194ff9a6..f2681919da 100644
--- a/tp/t/results/sectioning/chapter_before_and_after_part.pl
+++ b/tp/t/results/sectioning/chapter_before_and_after_part.pl
@@ -410,7 +410,8 @@ ul.no-bullet {list-style: none}
 </ul>
 </div>
 </div>
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/sectioning/chapter_before_part.pl 
b/tp/t/results/sectioning/chapter_before_part.pl
index 9dbc130b5e..1d63d58089 100644
--- a/tp/t/results/sectioning/chapter_before_part.pl
+++ b/tp/t/results/sectioning/chapter_before_part.pl
@@ -281,7 +281,8 @@ ul.no-bullet {list-style: none}
 <div class="part" id="part">
 <h1 class="part">part</h1>
 <hr>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/contents.pl 
b/tp/t/results/sectioning/contents.pl
index 5d260afedb..1410f8f182 100644
--- a/tp/t/results/sectioning/contents.pl
+++ b/tp/t/results/sectioning/contents.pl
@@ -904,7 +904,8 @@ ul.no-bullet {list-style: none}
 <div class="appendixsec" id="appendixsec">
 <h3 class="appendixsec">A.1 appendixsec</h3>
 
-<hr></div>
+<hr>
+</div>
 </div>
 </div>
 
diff --git a/tp/t/results/sectioning/contents_and_shortcontents.pl 
b/tp/t/results/sectioning/contents_and_shortcontents.pl
index 5ad5bab9f2..7ca5c3bce9 100644
--- a/tp/t/results/sectioning/contents_and_shortcontents.pl
+++ b/tp/t/results/sectioning/contents_and_shortcontents.pl
@@ -959,7 +959,8 @@ ul.no-bullet {list-style: none}
 <h3 class="appendixsec">A.1 appendixsec</h3>
 
 
-<hr></div>
+<hr>
+</div>
 </div>
 </div>
 
diff --git a/tp/t/results/sectioning/contents_in_html_text.pl 
b/tp/t/results/sectioning/contents_in_html_text.pl
index ab2785fffa..6208da4eca 100644
--- a/tp/t/results/sectioning/contents_in_html_text.pl
+++ b/tp/t/results/sectioning/contents_in_html_text.pl
@@ -360,7 +360,8 @@ $result_converted{'html_text'}->{'contents_in_html_text'} = 
'<div class="top" id
 </ul>
 </div>
 </div>
-<hr></div>
+<hr>
+</div>
 </div>
 ';
 
diff --git a/tp/t/results/sectioning/contents_with_only_top_node.pl 
b/tp/t/results/sectioning/contents_with_only_top_node.pl
index 9856c974b1..7611ca7f98 100644
--- a/tp/t/results/sectioning/contents_with_only_top_node.pl
+++ b/tp/t/results/sectioning/contents_with_only_top_node.pl
@@ -188,6 +188,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/sectioning/equivalent_labels.pl 
b/tp/t/results/sectioning/equivalent_labels.pl
index cc8768c743..4558d3ca33 100644
--- a/tp/t/results/sectioning/equivalent_labels.pl
+++ b/tp/t/results/sectioning/equivalent_labels.pl
@@ -721,6 +721,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/sectioning/no_argument_and_contents.pl 
b/tp/t/results/sectioning/no_argument_and_contents.pl
index fdae2d2dff..72c6054b4e 100644
--- a/tp/t/results/sectioning/no_argument_and_contents.pl
+++ b/tp/t/results/sectioning/no_argument_and_contents.pl
@@ -272,7 +272,8 @@ ul.no-bullet {list-style: none}
 <div class="chapter">
 <h2 class="chapter">1 </h2>
 
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl 
b/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
index 0aa9fc928a..39323f75bb 100644
--- a/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
+++ b/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
@@ -328,7 +328,8 @@ ul.no-bullet {list-style: none}
 </ul>
 <div class="chapter" id="chap">
 <h2 class="chapter">1 chap</h2>
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl 
b/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl
index 34950caf2c..1848ca9a85 100644
--- a/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl
+++ b/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl
@@ -224,6 +224,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl 
b/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl
index dd73ea5ccf..bec2f6efcb 100644
--- a/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl
+++ b/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl
@@ -376,6 +376,7 @@ ul.no-bullet {list-style: none}
 </p><hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/sectioning/one_subsection.pl 
b/tp/t/results/sectioning/one_subsection.pl
index 61a6940aa6..0c7abdc8e9 100644
--- a/tp/t/results/sectioning/one_subsection.pl
+++ b/tp/t/results/sectioning/one_subsection.pl
@@ -136,7 +136,8 @@ ul.no-bullet {list-style: none}
 <body lang="en">
 <div class="subsection" id="The-subsection">
 <h4 class="subsection">1 The subsection</h4>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/one_subsection_and_node.pl 
b/tp/t/results/sectioning/one_subsection_and_node.pl
index 160a2f267e..ad75f9d653 100644
--- a/tp/t/results/sectioning/one_subsection_and_node.pl
+++ b/tp/t/results/sectioning/one_subsection_and_node.pl
@@ -241,7 +241,8 @@ ul.no-bullet {list-style: none}
 <body lang="en">
 <div class="subsection" id="one-node">
 <h4 class="subsection" id="The-subsection">1 The subsection</h4>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/part_before_chapter.pl 
b/tp/t/results/sectioning/part_before_chapter.pl
index 02d2cdbb3e..900015ce37 100644
--- a/tp/t/results/sectioning/part_before_chapter.pl
+++ b/tp/t/results/sectioning/part_before_chapter.pl
@@ -249,7 +249,8 @@ ul.no-bullet {list-style: none}
 </ul>
 <div class="chapter" id="chapter">
 <h2 class="chapter">1 chapter</h2>
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/sectioning/part_before_section.pl 
b/tp/t/results/sectioning/part_before_section.pl
index 045f573aa6..6d5935abdc 100644
--- a/tp/t/results/sectioning/part_before_section.pl
+++ b/tp/t/results/sectioning/part_before_section.pl
@@ -207,7 +207,8 @@ $result_converted{'html_text'}->{'part_before_section'} = 
'<div class="part" id=
 </ul>
 <div class="section" id="section">
 <h2 class="chapter">1 section</h2>
-<hr></div>
+<hr>
+</div>
 </div>
 ';
 
diff --git a/tp/t/results/sectioning/part_before_top.pl 
b/tp/t/results/sectioning/part_before_top.pl
index 14ccc21d3b..1d28814b7b 100644
--- a/tp/t/results/sectioning/part_before_top.pl
+++ b/tp/t/results/sectioning/part_before_top.pl
@@ -254,7 +254,8 @@ ul.no-bullet {list-style: none}
 </div>
 <div class="top" id="top">
 <h1 class="top">top</h1>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/placed_things_before_element.pl 
b/tp/t/results/sectioning/placed_things_before_element.pl
index 887b76109f..ad1921ed9e 100644
--- a/tp/t/results/sectioning/placed_things_before_element.pl
+++ b/tp/t/results/sectioning/placed_things_before_element.pl
@@ -1168,7 +1168,8 @@ ul.no-bullet {list-style: none}
 <a href="#An-anchor">An anchor</a>
 </p>
 </div>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/placed_things_before_node.pl 
b/tp/t/results/sectioning/placed_things_before_node.pl
index 8bf707e9f6..11c0783d60 100644
--- a/tp/t/results/sectioning/placed_things_before_node.pl
+++ b/tp/t/results/sectioning/placed_things_before_node.pl
@@ -1234,7 +1234,8 @@ ul.no-bullet {list-style: none}
 <a href="#An-anchor">An anchor</a>
 </p>
 </div>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/ref_to_top.pl 
b/tp/t/results/sectioning/ref_to_top.pl
index 0ec1edd60a..d9f03e1c17 100644
--- a/tp/t/results/sectioning/ref_to_top.pl
+++ b/tp/t/results/sectioning/ref_to_top.pl
@@ -313,7 +313,8 @@ ul.no-bullet {list-style: none}
 <h1 class="top" id="top">top</h1>
 
 <p>See <a href="#Top">top</a>.
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/section_before_after_top_node.pl 
b/tp/t/results/sectioning/section_before_after_top_node.pl
index 9cb31886f3..5fcd91dca2 100644
--- a/tp/t/results/sectioning/section_before_after_top_node.pl
+++ b/tp/t/results/sectioning/section_before_after_top_node.pl
@@ -446,7 +446,8 @@ ul.no-bullet {list-style: none}
 <h2 class="chapter">1 Chapter</h2>
 
 <p>in chapter
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/section_before_part.pl 
b/tp/t/results/sectioning/section_before_part.pl
index d21207eda4..0040599f87 100644
--- a/tp/t/results/sectioning/section_before_part.pl
+++ b/tp/t/results/sectioning/section_before_part.pl
@@ -269,7 +269,8 @@ ul.no-bullet {list-style: none}
 </ul>
 </div>
 </div>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/section_below_unnumbered_no_top.pl 
b/tp/t/results/sectioning/section_below_unnumbered_no_top.pl
index 6e74664d65..a17cac5267 100644
--- a/tp/t/results/sectioning/section_below_unnumbered_no_top.pl
+++ b/tp/t/results/sectioning/section_below_unnumbered_no_top.pl
@@ -189,7 +189,8 @@ ul.no-bullet {list-style: none}
 </ul>
 <div class="section" id="S">
 <h3 class="section">S</h3>
-<hr></div>
+<hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/sectioning/section_node_before_part.pl 
b/tp/t/results/sectioning/section_node_before_part.pl
index 4c0e887fe6..12180856fb 100644
--- a/tp/t/results/sectioning/section_node_before_part.pl
+++ b/tp/t/results/sectioning/section_node_before_part.pl
@@ -321,7 +321,8 @@ ul.no-bullet {list-style: none}
 <div class="part" id="part">
 <h1 class="part">part</h1>
 <hr>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/sections_test.pl 
b/tp/t/results/sectioning/sections_test.pl
index 578a335d5b..9549d55c9e 100644
--- a/tp/t/results/sectioning/sections_test.pl
+++ b/tp/t/results/sectioning/sections_test.pl
@@ -832,7 +832,8 @@ ul.no-bullet {list-style: none}
 </ul>
 <div class="appendixsec" id="appendixsec">
 <h3 class="appendixsec">A.1 appendixsec</h3>
-<hr></div>
+<hr>
+</div>
 </div>
 </div>
 
diff --git a/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl 
b/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl
index 1b21e38b56..7c51a69e9b 100644
--- a/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl
+++ b/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl
@@ -330,7 +330,8 @@ ul.no-bullet {list-style: none}
 <div class="top" id="Top">
 <h1 class="top" id="In-top-">In top </h1>
 
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/shortcontents.pl 
b/tp/t/results/sectioning/shortcontents.pl
index 66e7a6a555..c41f830896 100644
--- a/tp/t/results/sectioning/shortcontents.pl
+++ b/tp/t/results/sectioning/shortcontents.pl
@@ -885,7 +885,8 @@ ul.no-bullet {list-style: none}
 <div class="appendixsec" id="appendixsec">
 <h3 class="appendixsec">A.1 appendixsec</h3>
 
-<hr></div>
+<hr>
+</div>
 </div>
 </div>
 
diff --git a/tp/t/results/sectioning/top_no_argument_and_content.pl 
b/tp/t/results/sectioning/top_no_argument_and_content.pl
index 7b128f15d5..e59a8c9179 100644
--- a/tp/t/results/sectioning/top_no_argument_and_content.pl
+++ b/tp/t/results/sectioning/top_no_argument_and_content.pl
@@ -146,7 +146,8 @@ ul.no-bullet {list-style: none}
 <div class="top" id="SEC_Top">
 
 <p>A.
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/top_no_argument_and_node.pl 
b/tp/t/results/sectioning/top_no_argument_and_node.pl
index 07a28b66d3..6c23695b0c 100644
--- a/tp/t/results/sectioning/top_no_argument_and_node.pl
+++ b/tp/t/results/sectioning/top_no_argument_and_node.pl
@@ -221,7 +221,8 @@ ul.no-bullet {list-style: none}
 
 <body lang="en">
 <div class="top" id="start">
-<a class="top-anchor" id="SEC_Top"></a><hr></div>
+<a class="top-anchor" id="SEC_Top"></a><hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/top_no_argument_and_top_node.pl 
b/tp/t/results/sectioning/top_no_argument_and_top_node.pl
index e0334793a6..69a3d88c5c 100644
--- a/tp/t/results/sectioning/top_no_argument_and_top_node.pl
+++ b/tp/t/results/sectioning/top_no_argument_and_top_node.pl
@@ -211,7 +211,8 @@ ul.no-bullet {list-style: none}
 
 <body lang="en">
 <div class="top" id="Top">
-<a class="top-anchor" id="SEC_Top"></a><hr></div>
+<a class="top-anchor" id="SEC_Top"></a><hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/top_node_part_top.pl 
b/tp/t/results/sectioning/top_node_part_top.pl
index 7c89fa5174..0628345463 100644
--- a/tp/t/results/sectioning/top_node_part_top.pl
+++ b/tp/t/results/sectioning/top_node_part_top.pl
@@ -384,7 +384,8 @@ ul.no-bullet {list-style: none}
 <hr>
 
 <h1 class="top" id="top">top</h1>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/top_without_node_nodes.pl 
b/tp/t/results/sectioning/top_without_node_nodes.pl
index 08dd534928..d72503970f 100644
--- a/tp/t/results/sectioning/top_without_node_nodes.pl
+++ b/tp/t/results/sectioning/top_without_node_nodes.pl
@@ -464,7 +464,8 @@ ul.no-bullet {list-style: none}
 <h2 class="chapter" id="Chapter">1 Chapter</h2>
 
 <p>Text of chapter
-</p><hr></div>
+</p><hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/sectioning/top_without_node_sections.pl 
b/tp/t/results/sectioning/top_without_node_sections.pl
index 55b4da6ed3..07287e8838 100644
--- a/tp/t/results/sectioning/top_without_node_sections.pl
+++ b/tp/t/results/sectioning/top_without_node_sections.pl
@@ -512,7 +512,8 @@ ul.no-bullet {list-style: none}
 <h2 class="chapter" id="Chapter">1 Chapter</h2>
 
 <p>Text of chapter
-</p><hr></div>
+</p><hr>
+</div>
 </div>
 
 
diff --git a/tp/t/results/sectioning/two_unnumbered_no_argument.pl 
b/tp/t/results/sectioning/two_unnumbered_no_argument.pl
index 8361df1210..0a6f68fb3a 100644
--- a/tp/t/results/sectioning/two_unnumbered_no_argument.pl
+++ b/tp/t/results/sectioning/two_unnumbered_no_argument.pl
@@ -184,6 +184,7 @@ ul.no-bullet {list-style: none}
 <hr>
 
 
+
 </body>
 </html>
 ';
diff --git a/tp/t/results/sectioning/unnumbered_before_node_top_top.pl 
b/tp/t/results/sectioning/unnumbered_before_node_top_top.pl
index 305c132eba..58bd661bf4 100644
--- a/tp/t/results/sectioning/unnumbered_before_node_top_top.pl
+++ b/tp/t/results/sectioning/unnumbered_before_node_top_top.pl
@@ -445,7 +445,8 @@ ul.no-bullet {list-style: none}
 <div class="top" id="Top">
 <h2 class="unnumbered" id="top-section">top section</h2>
 <p>Top node
-</p><hr></div>
+</p><hr>
+</div>
 
 
 
diff --git a/tp/t/results/sectioning/unnumbered_before_top_node.pl 
b/tp/t/results/sectioning/unnumbered_before_top_node.pl
index e8c3138481..664411aad9 100644
--- a/tp/t/results/sectioning/unnumbered_before_top_node.pl
+++ b/tp/t/results/sectioning/unnumbered_before_top_node.pl
@@ -326,7 +326,8 @@ ul.no-bullet {list-style: none}
 <p>Top node
 </p>
 <h1 class="titlefont">Title titlefont</h1>
-<hr></div>
+<hr>
+</div>
 
 
 
diff --git a/tp/t/results/xml_tests/node_and_bye.pl 
b/tp/t/results/xml_tests/node_and_bye.pl
index 5dd4a8e90d..ac602d2545 100644
--- a/tp/t/results/xml_tests/node_and_bye.pl
+++ b/tp/t/results/xml_tests/node_and_bye.pl
@@ -74,9 +74,7 @@ $result_trees{'node_and_bye'} = [
         'parent' => {}
       }
     ],
-    'extra' => {
-      'no_section' => 1
-    },
+    'extra' => {},
     'type' => 'unit'
   }
 ];
@@ -126,8 +124,7 @@ $result_elements{'node_and_bye'} = [
     'extra' => {
       'directions' => {
         'This' => {}
-      },
-      'no_section' => 1
+      }
     },
     'type' => 'unit'
   }
diff --git a/tp/t/results/xtable/block_commands_in_table.pl 
b/tp/t/results/xtable/block_commands_in_table.pl
index f2ac86079b..83090d03e4 100644
--- a/tp/t/results/xtable/block_commands_in_table.pl
+++ b/tp/t/results/xtable/block_commands_in_table.pl
@@ -1798,7 +1798,8 @@ end example.
 </p></dd>
 </dl>
 <p>After table.
-</p><hr></div>
+</p><hr>
+</div>
 ';
 
 
diff --git a/tp/tests/formatting/res_parser/test_redefine_need/test_need.html 
b/tp/tests/formatting/res_parser/test_redefine_need/test_need.html
index 40b8cb36d4..bd9c677182 100644
--- a/tp/tests/formatting/res_parser/test_redefine_need/test_need.html
+++ b/tp/tests/formatting/res_parser/test_redefine_need/test_need.html
@@ -54,7 +54,8 @@ ul.no-bullet {list-style: none}
 @need <!-- need: 0.1 -->
 </p>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/indices/res_parser/index_nodes/index_nodes.html 
b/tp/tests/indices/res_parser/index_nodes/index_nodes.html
index 8686acfb6b..9a6cbd7d02 100644
--- a/tp/tests/indices/res_parser/index_nodes/index_nodes.html
+++ b/tp/tests/indices/res_parser/index_nodes/index_nodes.html
@@ -345,7 +345,8 @@ ul.no-bullet {list-style: none}
  &nbsp; 
 </td></tr></table>
 
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/tests/indices/res_parser/index_one_node/index_one_node.html 
b/tp/tests/indices/res_parser/index_one_node/index_one_node.html
index 699da2c853..69c289fde9 100644
--- a/tp/tests/indices/res_parser/index_one_node/index_one_node.html
+++ b/tp/tests/indices/res_parser/index_one_node/index_one_node.html
@@ -86,7 +86,8 @@ ul.no-bullet {list-style: none}
  &nbsp; 
 </td></tr></table>
 
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex.html 
b/tp/tests/many_input_files/tex_l2h_res/tex.html
index 4fab873151..937c54f843 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex.html
+++ b/tp/tests/many_input_files/tex_l2h_res/tex.html
@@ -134,7 +134,8 @@ Here some <!-- MATH
 $">
 </DIV>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex_complex.html 
b/tp/tests/many_input_files/tex_l2h_res/tex_complex.html
index 30846d95ed..e0b64afda3 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex_complex.html
+++ b/tp/tests/many_input_files/tex_l2h_res/tex_complex.html
@@ -147,7 +147,8 @@ $">
  ALT="$h \dot \psi^\phi$"></SPAN>.
 </p>
 </div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/many_input_files/tex_t4ht_res/tex.html 
b/tp/tests/many_input_files/tex_t4ht_res/tex.html
index 0083a30943..55b5585c75 100644
--- a/tp/tests/many_input_files/tex_t4ht_res/tex.html
+++ b/tp/tests/many_input_files/tex_t4ht_res/tex.html
@@ -122,7 +122,8 @@ src="tex_tex4ht_tex1x.png" alt="                        (   
   )
 " class="math-display" ></div>
 <!--l. 29--><p class="indent" >     
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/many_input_files/tex_t4ht_res/tex_complex.html 
b/tp/tests/many_input_files/tex_t4ht_res/tex_complex.html
index 3649542613..293fd30cd6 100644
--- a/tp/tests/many_input_files/tex_t4ht_res/tex_complex.html
+++ b/tp/tests/many_input_files/tex_t4ht_res/tex_complex.html
@@ -120,7 +120,8 @@ src="tex_complex_tex4ht_tex3x.png" alt="&#x03C8;&#x02D9;"  
class="dot" ><sup><sp
 class="cmmi-7">&#x03D5;</span></sup> .
 </p>
 </div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_cartouche/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_cartouche/nested_formats.html
index 2118f96925..fa1d45cfba 100644
--- a/tp/tests/nested_formats/res_parser/nested_cartouche/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_cartouche/nested_formats.html
@@ -4062,7 +4062,8 @@ html
 
 </td></tr></table>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_deffn/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_deffn/nested_formats.html
index 93499fb84c..dbd98abc91 100644
--- a/tp/tests/nested_formats/res_parser/nested_deffn/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_deffn/nested_formats.html
@@ -4477,7 +4477,8 @@ html
 
 </dd></dl>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_enumerate/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_enumerate/nested_formats.html
index 154361c4d0..dd2ee0b850 100644
--- a/tp/tests/nested_formats/res_parser/nested_enumerate/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_enumerate/nested_formats.html
@@ -4062,7 +4062,8 @@ html
 
 </li></ol>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_example/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_example/nested_formats.html
index 36e0ff6176..8c6fe953e2 100644
--- a/tp/tests/nested_formats/res_parser/nested_example/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_example/nested_formats.html
@@ -4482,7 +4482,8 @@ html
 
 </pre></div>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_flushright/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_flushright/nested_formats.html
index fb6c2b8030..0c17213826 100644
--- a/tp/tests/nested_formats/res_parser/nested_flushright/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_flushright/nested_formats.html
@@ -3720,7 +3720,8 @@ html
 <div class="center-align">ce&ndash;ntered line
 </div>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_group/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_group/nested_formats.html
index 3b10a48c91..595720ffee 100644
--- a/tp/tests/nested_formats/res_parser/nested_group/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_group/nested_formats.html
@@ -3720,7 +3720,8 @@ html
 <div class="center-align">ce&ndash;ntered line
 </div>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_itemize/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_itemize/nested_formats.html
index f33a67a5d6..e3e3f26fdf 100644
--- a/tp/tests/nested_formats/res_parser/nested_itemize/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_itemize/nested_formats.html
@@ -4224,7 +4224,8 @@ html
 
 </li></ul>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/nested_formats/res_parser/nested_menu/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_menu/nested_formats.html
index 72023ccced..605454b8ca 100644
--- a/tp/tests/nested_formats/res_parser/nested_menu/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_menu/nested_formats.html
@@ -4482,7 +4482,8 @@ html
 
 </pre></th></tr></table>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_multitable/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_multitable/nested_formats.html
index a9a59872ba..515e8d5c38 100644
--- a/tp/tests/nested_formats/res_parser/nested_multitable/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_multitable/nested_formats.html
@@ -3963,7 +3963,8 @@ html
 </table></td></tr>
 </table>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_quotation/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_quotation/nested_formats.html
index c930fdd2c2..5ce1d1482e 100644
--- a/tp/tests/nested_formats/res_parser/nested_quotation/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_quotation/nested_formats.html
@@ -4224,7 +4224,8 @@ html
 
 </blockquote>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git 
a/tp/tests/nested_formats/res_parser/nested_table/nested_formats.html 
b/tp/tests/nested_formats/res_parser/nested_table/nested_formats.html
index 4379a8a418..9cf7c0108e 100644
--- a/tp/tests/nested_formats/res_parser/nested_table/nested_formats.html
+++ b/tp/tests/nested_formats/res_parser/nested_table/nested_formats.html
@@ -4234,7 +4234,8 @@ html
 </dd>
 </dl>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL.html 
b/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL.html
index 616ff37139..d23bcd7500 100644
--- a/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL.html
+++ b/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL.html
@@ -113,7 +113,8 @@ end commands on a line.
 <p>Before the opening command </p><pre class="verbatim">in block
 </pre><p>. A symbol after the closing command.
 </p>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html 
b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html
index 5e6fec6b58..f8c20b222f 100644
--- a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html
+++ b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html
@@ -57,7 +57,8 @@ $"></SPAN></p><h1 class="chapter" id="Chapter">1 Chapter</h1>
 <p><SPAN CLASS="MATH"><IMG
  STYLE="height: 2.26ex; vertical-align: -0.31ex; " SRC="math_not_closed_2.svg"
  ALT="$3\delta + 2
-$"></SPAN></p><hr></div>
+$"></SPAN></p><hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex/tex.html 
b/tp/tests/tex_html/res_parser/tex/tex.html
index 4fab873151..937c54f843 100644
--- a/tp/tests/tex_html/res_parser/tex/tex.html
+++ b/tp/tests/tex_html/res_parser/tex/tex.html
@@ -134,7 +134,8 @@ Here some <!-- MATH
 $">
 </DIV>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_complex_httex/tex_complex.html 
b/tp/tests/tex_html/res_parser/tex_complex_httex/tex_complex.html
index 3649542613..293fd30cd6 100644
--- a/tp/tests/tex_html/res_parser/tex_complex_httex/tex_complex.html
+++ b/tp/tests/tex_html/res_parser/tex_complex_httex/tex_complex.html
@@ -120,7 +120,8 @@ src="tex_complex_tex4ht_tex3x.png" alt="&#x03C8;&#x02D9;"  
class="dot" ><sup><sp
 class="cmmi-7">&#x03D5;</span></sup> .
 </p>
 </div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html 
b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html
index 30846d95ed..e0b64afda3 100644
--- a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html
+++ b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html
@@ -147,7 +147,8 @@ $">
  ALT="$h \dot \psi^\phi$"></SPAN>.
 </p>
 </div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_eqalign_httex/tex_eqalign.html 
b/tp/tests/tex_html/res_parser/tex_eqalign_httex/tex_eqalign.html
index b8f4528caa..b40be50b31 100644
--- a/tp/tests/tex_html/res_parser/tex_eqalign_httex/tex_eqalign.html
+++ b/tp/tests/tex_html/res_parser/tex_eqalign_httex/tex_eqalign.html
@@ -72,7 +72,8 @@ src="tex_eqalign_tex4ht_tex1x.png" alt="                      
              &#x2
 " class="math-display" ></div>
 <!--l. 16--><p class="indent" >     
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html 
b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html
index 624bd6ed65..18e60e302b 100644
--- a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html
+++ b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html
@@ -88,7 +88,8 @@ $">
 </DIV>
 
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_httex/tex_gdef.html 
b/tp/tests/tex_html/res_parser/tex_gdef_httex/tex_gdef.html
index 934975c67d..c5ee1effc2 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_httex/tex_gdef.html
+++ b/tp/tests/tex_html/res_parser/tex_gdef_httex/tex_gdef.html
@@ -73,7 +73,8 @@ de&#x2261;fa &#x2261; b 64
 " class="math-display" ></div>
 <!--l. 16--><p class="indent" >     
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html 
b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html
index ef35e036b8..3d7bd8c94e 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html
+++ b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html
@@ -75,7 +75,8 @@ ul.no-bullet {list-style: none}
 $">
 </DIV>
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html 
b/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html
index 894e7d22d0..adec12d451 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html
+++ b/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html
@@ -69,7 +69,8 @@ MathJax = {
 </p>
 <div class="displaymath"><em class="tex2jax_process">\[ \Desig \testmacro 
\otest
 \]</em></div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_httex/tex.html 
b/tp/tests/tex_html/res_parser/tex_httex/tex.html
index 0083a30943..55b5585c75 100644
--- a/tp/tests/tex_html/res_parser/tex_httex/tex.html
+++ b/tp/tests/tex_html/res_parser/tex_httex/tex.html
@@ -122,7 +122,8 @@ src="tex_tex4ht_tex1x.png" alt="                        (   
   )
 " class="math-display" ></div>
 <!--l. 29--><p class="indent" >     
 
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
diff --git a/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed.html 
b/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed.html
index 2da4ea9fb8..6e0a4ce064 100644
--- a/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed.html
+++ b/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed.html
@@ -52,7 +52,8 @@ ul.no-bullet {list-style: none}
 
 <P>
 This is some <SPAN 
CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>
-<hr><p>
+<hr>
+<p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>
 
diff --git a/tp/tests/tex_html/res_parser/tex_notex/tex.html 
b/tp/tests/tex_html/res_parser/tex_notex/tex.html
index 45837a0256..93d3decb28 100644
--- a/tp/tests/tex_html/res_parser/tex_notex/tex.html
+++ b/tp/tests/tex_html/res_parser/tex_notex/tex.html
@@ -80,7 +80,8 @@ Here some <em class="math">{x^i}\over{\tan y}</em>.
 <p>Displaymath
 </p><div class="displaymath"><em>-- f(x) = {1 \over \sigma 
\sqrt{2\pi}}e<sup>-{1 \over 2}\left({x-\mu \over \sigma}\right)^2</sup>
 </em></div>
-<hr></div>
+<hr>
+</div>
 <p>
   <span class="smaller">This document was generated on <em>a sunny day</em> 
using <a 
href="http://www.gnu.org/software/texinfo/";><em>texi2any</em></a>.</span>
 </p>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]