texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Makefile.tres, tp/t/30sectioning.t: add chap


From: Patrice Dumas
Subject: branch master updated: * tp/Makefile.tres, tp/t/30sectioning.t: add chapter_between_nodes_texi2html, two_nodes_between_chapters_nodes and two_nodes_between_chapters_texi2html.
Date: Sat, 11 Mar 2023 17:04:16 -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 077a105cd1 * tp/Makefile.tres, tp/t/30sectioning.t: add 
chapter_between_nodes_texi2html, two_nodes_between_chapters_nodes and 
two_nodes_between_chapters_texi2html.
077a105cd1 is described below

commit 077a105cd1ccde4700f502e84c49eb47b1b81dfe
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Mar 11 23:04:04 2023 +0100

    * tp/Makefile.tres, tp/t/30sectioning.t: add
    chapter_between_nodes_texi2html, two_nodes_between_chapters_nodes and
    two_nodes_between_chapters_texi2html.
---
 ChangeLog                                          |   6 +
 tp/Makefile.tres                                   |   5 +
 tp/TODO                                            |   3 -
 tp/t/30sectioning.t                                |  88 ++-
 .../sectioning/chapter_between_nodes_texi2html.pl  | 803 +++++++++++++++++++++
 .../sectioning/two_nodes_between_chapters_nodes.pl | 749 +++++++++++++++++++
 .../res_html/chapter-1.html                        |  42 ++
 .../res_html/chapter-2.html                        |  40 +
 .../res_html/index.html                            |  50 ++
 .../res_html/node-between-chapters.html            |  40 +
 .../two_nodes_between_chapters_texi2html.pl        | 749 +++++++++++++++++++
 .../two_nodes_between_chapters_texi2html.html      | 207 ++++++
 12 files changed, 2743 insertions(+), 39 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8599d1478e..735e2e733c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-03-11  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Makefile.tres, tp/t/30sectioning.t: add
+       chapter_between_nodes_texi2html, two_nodes_between_chapters_nodes and
+       two_nodes_between_chapters_texi2html.
+
 2023-03-11  Patrice Dumas  <pertusus@free.fr>
 
        * tp/t/30sectioning.t, tp/Makefile.tres: add
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index 31e6e925f5..7ad375bf36 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -1686,6 +1686,7 @@ test_files_generated_list = 
$(test_tap_files_generated_list) \
   t/results/sectioning/chapter_before_part.pl \
   t/results/sectioning/chapter_between_nodes.pl \
   t/results/sectioning/chapter_between_nodes/res_latex \
+  t/results/sectioning/chapter_between_nodes_texi2html.pl \
   t/results/sectioning/chapter_between_nodes_with_appendix.pl \
   t/results/sectioning/chapter_between_nodes_with_appendix_nomenu.pl \
   t/results/sectioning/chapter_node_before_and_after_part.pl \
@@ -1821,6 +1822,10 @@ test_files_generated_list = 
$(test_tap_files_generated_list) \
   t/results/sectioning/transliterated_split_equivalent_nodes/res_html \
   t/results/sectioning/two_nodes_at_the_end.pl \
   t/results/sectioning/two_nodes_between_chapters.pl \
+  t/results/sectioning/two_nodes_between_chapters_nodes.pl \
+  t/results/sectioning/two_nodes_between_chapters_nodes/res_html \
+  t/results/sectioning/two_nodes_between_chapters_texi2html.pl \
+  t/results/sectioning/two_nodes_between_chapters_texi2html/res_html \
   t/results/sectioning/two_unnumbered_no_argument.pl \
   t/results/sectioning/unknown_node_in_menu.pl \
   t/results/sectioning/unnumbered_before_node_top_top.pl \
diff --git a/tp/TODO b/tp/TODO
index 85e7eda5f4..3ce99ab82a 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -591,10 +591,7 @@ style for some tests.  However, the test suite is already 
too long to
 run so such additions should be done with caution.
 
 t/30sectioning.t
- chapter_between_nodes (TEXI2HTML for USE_NODES=0 and directions)
- two_nodes_between_chapters (split at node / TEXI2HTML for USE_NODES=0 and 
directions)
  two_nodes_at_the_end (split at node / TEXI2HTML for USE_NODES=0 and 
directions)
- top_without_node_sections
 
 t/40moresectioning.t
  more_sections_than_nodes (current is with TEXI2HTML, one with default 
USE_NODES=1 could be interesting)
diff --git a/tp/t/30sectioning.t b/tp/t/30sectioning.t
index cd76683ee6..2d42737f55 100644
--- a/tp/t/30sectioning.t
+++ b/tp/t/30sectioning.t
@@ -62,6 +62,26 @@ second node
 @subsection subsection
 ';
 
+my $chapter_between_nodes_text = '@node Top
+@top top section
+Top node
+
+@menu
+* section node::
+@end menu
+
+@chapter Chapter
+
+In chapter
+
+@node section node,,,Top
+@section section
+
+section.
+
+@contents
+';
+
 my $chapter_between_nodes_with_appendix = '@node Top
 @top top section
 @chapter Main
@@ -75,6 +95,24 @@ Top node
 @appendix Annex
 ';
 
+my $two_nodes_between_chapters_text = '@node Top
+@top top
+
+@menu
+* chapter 1::
+* node between chapters::
+* chapter 2::
+@end menu
+
+@node chapter 1, Top, node between chapters, Top
+@chapter chapter c1
+
+@node node between chapters
+
+@node chapter 2
+@chapter chapter c2
+';
+
 my @tests_converted = (
 ['one_subsection',
 '@subsection The subsection
@@ -185,23 +223,8 @@ Text part second.
 @node chap first, (manual1), (manual2) , (manual3)
 ', {'test_split' => 'node'}],
 ['two_nodes_between_chapters',
-'@node Top
-@top top
-
-@menu
-* chapter 1::
-* node between chapters::
-* chapter 2::
-@end menu
-
-@node chapter 1, Top, node between chapters, Top
-@chapter chapter c1
-
-@node node between chapters
-
-@node chapter 2
-@chapter chapter c2
-', {'test_split' => 'section', 'CHECK_NORMAL_MENU_STRUCTURE' => 1}],
+$two_nodes_between_chapters_text,
+{'test_split' => 'section', 'CHECK_NORMAL_MENU_STRUCTURE' => 1}],
 ['two_nodes_at_the_end',
 '@node Top
 @top top
@@ -496,25 +519,11 @@ ref to ref @ref{ref}.
 # in the Top node is not output, while the closing element is output
 # at the end of the document
 ['chapter_between_nodes',
-'@node Top
-@top top section
-Top node
-
-@menu
-* section node::
-@end menu
-
-@chapter Chapter
-
-In chapter
-
-@node section node,,,Top
-@section section
-
-section.
-
-@contents
-', {}, {'CONTENTS_OUTPUT_LOCATION' => 'inline'}],
+$chapter_between_nodes_text,
+{}, {'CONTENTS_OUTPUT_LOCATION' => 'inline'}],
+['chapter_between_nodes_texi2html',
+$chapter_between_nodes_text,
+{}, {'TEXI2HTML' => 1, 'CONTENTS_OUTPUT_LOCATION' => 'inline'}],
 # quite similar with previous test, but the following sectioning
 # command is also at chapter level
 ['chapter_between_nodes_with_appendix',
@@ -1363,6 +1372,13 @@ $top_without_node_text,
 # use TEXI2HTML for the directions
 {}, {'USE_NODES' => 0, 'TEXI2HTML' => 1},
 ],
+['two_nodes_between_chapters_nodes',
+$two_nodes_between_chapters_text,
+{}, {'SPLIT' => 'node'}],
+# both for USE_NODES=0 and specific directions.
+['two_nodes_between_chapters_texi2html',
+$two_nodes_between_chapters_text,
+{}, {'TEXI2HTML' => 1}],
 );
 
 foreach my $test (@test_out_files) {
diff --git a/tp/t/results/sectioning/chapter_between_nodes_texi2html.pl 
b/tp/t/results/sectioning/chapter_between_nodes_texi2html.pl
new file mode 100644
index 0000000000..c2f99a4de0
--- /dev/null
+++ b/tp/t/results/sectioning/chapter_between_nodes_texi2html.pl
@@ -0,0 +1,803 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'chapter_between_nodes_texi2html'} = {
+  'contents' => [
+    {
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'top section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top node
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'section node'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 'section-node'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 6,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => {
+                      'text' => '
+'
+                    }
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => {
+                  'text' => ' '
+                }
+              },
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 7,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 5,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'In chapter
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 9,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section node'
+            }
+          ],
+          'type' => 'line_arg'
+        },
+        {
+          'type' => 'line_arg'
+        },
+        {
+          'type' => 'line_arg'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          },
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'section-node'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 13,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'section.
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'text' => '
+',
+              'type' => 'rawline_arg'
+            }
+          ],
+          'cmdname' => 'contents',
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 18,
+            'macro' => ''
+          }
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 14,
+        'macro' => ''
+      }
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'chapter_between_nodes_texi2html'}{'contents'}[2]{'contents'}[2]{'contents'}[0]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'chapter_between_nodes_texi2html'}{'contents'}[2]{'contents'}[2]{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'chapter_between_nodes_texi2html'}{'contents'}[4]{'args'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'chapter_between_nodes_texi2html'}{'contents'}[4]{'args'}[3]{'contents'}[0];
+
+$result_texis{'chapter_between_nodes_texi2html'} = '@node Top
+@top top section
+Top node
+
+@menu
+* section node::
+@end menu
+
+@chapter Chapter
+
+In chapter
+
+@node section node,,,Top
+@section section
+
+section.
+
+@contents
+';
+
+
+$result_texts{'chapter_between_nodes_texi2html'} = 'top section
+***********
+Top node
+
+* section node::
+
+1 Chapter
+*********
+
+In chapter
+
+1.1 section
+===========
+
+section.
+
+';
+
+$result_sectioning{'chapter_between_nodes_texi2html'} = {
+  'structure' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            },
+            'structure' => {}
+          }
+        },
+        'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'structure' => {
+                'section_childs' => [
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'section-node'
+                        },
+                        'structure' => {}
+                      }
+                    },
+                    'structure' => {
+                      'section_level' => 2,
+                      'section_number' => '1.1',
+                      'section_up' => {}
+                    }
+                  }
+                ],
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
+          'section_level' => 0,
+          'section_up' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'chapter_between_nodes_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'chapter_between_nodes_texi2html'};
+
+$result_nodes{'chapter_between_nodes_texi2html'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'structure' => {}
+    },
+    'menus' => [
+      {
+        'cmdname' => 'menu'
+      }
+    ],
+    'normalized' => 'Top'
+  },
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'section',
+          'extra' => {},
+          'structure' => {
+            'section_number' => '1.1'
+          }
+        },
+        'normalized' => 'section-node'
+      },
+      'structure' => {
+        'node_prev' => {},
+        'node_up' => {}
+      }
+    },
+    'node_next' => {}
+  }
+};
+$result_nodes{'chapter_between_nodes_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
 = $result_nodes{'chapter_between_nodes_texi2html'};
+$result_nodes{'chapter_between_nodes_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = $result_nodes{'chapter_between_nodes_texi2html'};
+$result_nodes{'chapter_between_nodes_texi2html'}{'structure'}{'node_next'} = 
$result_nodes{'chapter_between_nodes_texi2html'}{'structure'}{'menu_child'};
+
+$result_menus{'chapter_between_nodes_texi2html'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'section-node'
+      },
+      'structure' => {
+        'menu_up' => {},
+        'menu_up_hash' => {
+          'Top' => 1
+        }
+      }
+    }
+  }
+};
+$result_menus{'chapter_between_nodes_texi2html'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = $result_menus{'chapter_between_nodes_texi2html'};
+
+$result_errors{'chapter_between_nodes_texi2html'} = [];
+
+
+$result_floats{'chapter_between_nodes_texi2html'} = {};
+
+
+
+$result_converted{'info'}->{'chapter_between_nodes_texi2html'} = 'This is , 
produced from .
+
+
+File: ,  Node: Top,  Next: section node,  Up: (dir)
+
+top section
+***********
+
+Top node
+
+* Menu:
+
+* section node::
+
+1 Chapter
+*********
+
+In chapter
+
+
+File: ,  Node: section node,  Prev: Top,  Up: Top
+
+1.1 section
+===========
+
+section.
+
+
+
+Tag Table:
+Node: Top27
+Node: section node177
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
+';
+
+
+$result_converted{'html'}->{'chapter_between_nodes_texi2html'} = '<!DOCTYPE 
html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>top section</title>
+
+<meta name="description" content="top section">
+<meta name="keywords" content="top section">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span.program-in-footer {font-size: smaller}
+span:hover a.copiable-link {visibility: visible}
+td.button-direction-about {text-align:center}
+td.menu-entry-description {vertical-align: top}
+td.menu-entry-destination {vertical-align: top}
+td.name-direction-about {text-align:center}
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[ &lt; ]</td>
+<td>[<a href="#Chapter" title="Next section in reading order"> &gt; </a>]</td>
+<td> &nbsp; </td>
+<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="top" id="top-section"><span>top section<a class="copiable-link" 
href="#top-section"> &para;</a></span></h1>
+<p>Top node
+</p>
+<table class="menu" border="0" cellspacing="0">
+<tr><td class="menu-entry-destination"><a href="#section-node">1.1 
section</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
+</td></tr>
+</table>
+
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="Chapter">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[<a href="#Top" title="Beginning of this chapter or previous chapter"> 
&lt;&lt; </a>]</td>
+<td>[<a href="#Top" title="Previous section in reading order"> &lt; </a>]</td>
+<td>[<a href="#Top" title="Up section"> Up </a>]</td>
+<td>[<a href="#section-node" title="Next section in reading order"> &gt; 
</a>]</td>
+<td>[ &gt;&gt; ]</td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="chapter"><span>1 Chapter<a class="copiable-link" href="#Chapter"> 
&para;</a></span></h1>
+
+<p>In chapter
+</p>
+<hr>
+<div class="section-level-extent" id="section-node">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[<a href="#Chapter" title="Beginning of this chapter or previous 
chapter"> &lt;&lt; </a>]</td>
+<td>[<a href="#Chapter" title="Previous section in reading order"> &lt; 
</a>]</td>
+<td>[<a href="#Chapter" title="Up section"> Up </a>]</td>
+<td>[ &gt; ]</td>
+<td>[ &gt;&gt; ]</td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h2 class="section" id="section"><span>1.1 section<a class="copiable-link" 
href="#section"> &para;</a></span></h2>
+
+<p>section.
+</p>
+<div class="element-contents" id="SEC_Contents">
+<h1 class="contents-heading">Table of Contents</h1>
+
+<div class="contents">
+
+<ul class="toc-numbered-mark">
+  <li><a id="toc-Chapter" href="#Chapter">1 Chapter</a>
+  <ul class="toc-numbered-mark">
+    <li><a id="toc-section" href="#section-node">1.1 section</a></li>
+  </ul></li>
+</ul>
+</div>
+</div>
+<hr style="height: 6px;">
+</div>
+</div>
+</div>
+<div class="element-about" id="SEC_About">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="about-heading">About This Document</h1>
+
+<p>
+  This document was generated on <em class="emph">a sunny day</em>.
+</p>
+<p>
+  The buttons in the navigation panels have the following meaning:
+</p>
+<table border="1">
+  <tr>
+    <th> Button </th>
+    <th> Name </th>
+    <th> Go to </th>
+    <th> From 1.2.3 go to</th>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &lt;&lt; ] </td>
+    <td class="name-direction-about">FastBack</td>
+    <td>Beginning of this chapter or previous chapter</td>
+    <td>1</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &lt; ] </td>
+    <td class="name-direction-about">Back</td>
+    <td>Previous section in reading order</td>
+    <td>1.2.2</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ Up ] </td>
+    <td class="name-direction-about">Up</td>
+    <td>Up section</td>
+    <td>1.2</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &gt; ] </td>
+    <td class="name-direction-about">Forward</td>
+    <td>Next section in reading order</td>
+    <td>1.2.4</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &gt;&gt; ] </td>
+    <td class="name-direction-about">FastForward</td>
+    <td>Next chapter</td>
+    <td>2</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [Top] </td>
+    <td class="name-direction-about">Top</td>
+    <td>Cover (top) of document</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [Contents] </td>
+    <td class="name-direction-about">Contents</td>
+    <td>Table of contents</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [Index] </td>
+    <td class="name-direction-about">Index</td>
+    <td>Index</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ ? ] </td>
+    <td class="name-direction-about">About</td>
+    <td>About (help)</td>
+    <td> &nbsp; </td>
+  </tr>
+</table>
+
+<p>
+  where the <strong class="strong"> Example </strong> assumes that the current 
position is at <strong class="strong"> Subsubsection One-Two-Three </strong> of 
a document of the following structure:
+</p>
+
+<ul>
+  <li> 1. Section One
+    <ul>
+      <li>1.1 Subsection One-One
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.2 Subsection One-Two
+        <ul>
+          <li>1.2.1 Subsubsection One-Two-One</li>
+          <li>1.2.2 Subsubsection One-Two-Two</li>
+          <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
+            <strong>&lt;== Current Position </strong></li>
+          <li>1.2.4 Subsubsection One-Two-Four</li>
+        </ul>
+      </li>
+      <li>1.3 Subsection One-Three
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.4 Subsection One-Four</li>
+    </ul>
+  </li>
+</ul>
+</div><hr>
+<p>
+  <span class="program-in-footer">This document was generated on <em 
class="emph">a sunny day</em>.</span>
+</p>
+
+
+</body>
+</html>
+';
+
+1;
diff --git a/tp/t/results/sectioning/two_nodes_between_chapters_nodes.pl 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes.pl
new file mode 100644
index 0000000000..d4f044070a
--- /dev/null
+++ b/tp/t/results/sectioning/two_nodes_between_chapters_nodes.pl
@@ -0,0 +1,749 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'two_nodes_between_chapters_nodes'} = {
+  'contents' => [
+    {
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'chapter 1'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 'chapter-1'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'node between chapters'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 'node-between-chapters'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 6,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'chapter 2'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 'chapter-2'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 7,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => {
+                      'text' => '
+'
+                    }
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => {
+                  'text' => ' '
+                }
+              },
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 8,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 4,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter 1'
+            }
+          ],
+          'type' => 'line_arg'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          },
+          'info' => {
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'type' => 'line_arg'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'node between chapters'
+            }
+          ],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'node-between-chapters'
+          },
+          'info' => {
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'type' => 'line_arg'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          },
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            },
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter-1'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 10,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter c1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 11,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'node between chapters'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'normalized' => 'node-between-chapters'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 13,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter 2'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter-2'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 15,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter c2'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 16,
+        'macro' => ''
+      }
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'contents'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[3]{'args'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[3]{'args'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[3]{'args'}[2]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[3]{'args'}[2]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[3]{'args'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_nodes'}{'contents'}[3]{'args'}[3]{'contents'}[0];
+
+$result_texis{'two_nodes_between_chapters_nodes'} = '@node Top
+@top top
+
+@menu
+* chapter 1::
+* node between chapters::
+* chapter 2::
+@end menu
+
+@node chapter 1, Top, node between chapters, Top
+@chapter chapter c1
+
+@node node between chapters
+
+@node chapter 2
+@chapter chapter c2
+';
+
+
+$result_texts{'two_nodes_between_chapters_nodes'} = 'top
+***
+
+* chapter 1::
+* node between chapters::
+* chapter 2::
+
+1 chapter c1
+************
+
+
+2 chapter c2
+************
+';
+
+$result_sectioning{'two_nodes_between_chapters_nodes'} = {
+  'structure' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            },
+            'structure' => {}
+          }
+        },
+        'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter-1'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            },
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter-2'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 2,
+                'section_prev' => {},
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
+          'section_level' => 0,
+          'section_up' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_prev'}
 = 
$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'two_nodes_between_chapters_nodes'};
+
+$result_nodes{'two_nodes_between_chapters_nodes'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'structure' => {}
+    },
+    'menus' => [
+      {
+        'cmdname' => 'menu'
+      }
+    ],
+    'normalized' => 'Top'
+  },
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'structure' => {
+            'section_number' => 1
+          }
+        },
+        'normalized' => 'chapter-1'
+      },
+      'structure' => {
+        'node_next' => {},
+        'node_prev' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'node-between-chapters'
+          },
+          'structure' => {
+            'node_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'associated_section' => {
+                  'cmdname' => 'chapter',
+                  'extra' => {},
+                  'structure' => {
+                    'section_number' => 2
+                  }
+                },
+                'normalized' => 'chapter-2'
+              },
+              'structure' => {
+                'node_prev' => {},
+                'node_up' => {}
+              }
+            },
+            'node_prev' => {},
+            'node_up' => {}
+          }
+        },
+        'node_up' => {}
+      }
+    },
+    'node_next' => {}
+  }
+};
+$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_next'}
 = $result_nodes{'two_nodes_between_chapters_nodes'};
+$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = $result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'};
+$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'two_nodes_between_chapters_nodes'};
+$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_prev'}
 = $result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'};
+$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_up'}
 = $result_nodes{'two_nodes_between_chapters_nodes'};
+$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = $result_nodes{'two_nodes_between_chapters_nodes'};
+$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'node_next'} = 
$result_nodes{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'};
+
+$result_menus{'two_nodes_between_chapters_nodes'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter-1'
+      },
+      'structure' => {
+        'menu_next' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'node-between-chapters'
+          },
+          'structure' => {
+            'menu_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chapter-2'
+              },
+              'structure' => {
+                'menu_prev' => {},
+                'menu_up' => {},
+                'menu_up_hash' => {
+                  'Top' => 1
+                }
+              }
+            },
+            'menu_prev' => {},
+            'menu_up' => {},
+            'menu_up_hash' => {
+              'Top' => 1
+            }
+          }
+        },
+        'menu_up' => {},
+        'menu_up_hash' => {
+          'Top' => 1
+        }
+      }
+    }
+  }
+};
+$result_menus{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_next'};
+$result_menus{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'two_nodes_between_chapters_nodes'};
+$result_menus{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = $result_menus{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'};
+$result_menus{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'two_nodes_between_chapters_nodes'};
+$result_menus{'two_nodes_between_chapters_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = $result_menus{'two_nodes_between_chapters_nodes'};
+
+$result_errors{'two_nodes_between_chapters_nodes'} = [];
+
+
+$result_floats{'two_nodes_between_chapters_nodes'} = {};
+
+
+1;
diff --git 
a/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/chapter-1.html
 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/chapter-1.html
new file mode 100644
index 0000000000..ea9da24f38
--- /dev/null
+++ 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/chapter-1.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>chapter 1 (top)</title>
+
+<meta name="description" content="chapter 1 (top)">
+<meta name="keywords" content="chapter 1 (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html" rel="up" title="Top">
+<link href="index.html" rel="next" title="Top">
+<link href="node-between-chapters.html" rel="prev" title="node between 
chapters">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent" id="chapter-1">
+<div class="nav-panel">
+<p>
+Next: <a href="index.html" accesskey="n" rel="next">top</a>, Previous: <a 
href="node-between-chapters.html" accesskey="p" rel="prev">node between 
chapters</a>, Up: <a href="index.html" accesskey="u" rel="up">top</a> &nbsp; 
</p>
+</div>
+<hr>
+<h2 class="chapter" id="chapter-c1"><span>1 chapter c1<a class="copiable-link" 
href="#chapter-c1"> &para;</a></span></h2>
+
+</div>
+
+
+
+</body>
+</html>
diff --git 
a/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/chapter-2.html
 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/chapter-2.html
new file mode 100644
index 0000000000..0151879920
--- /dev/null
+++ 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/chapter-2.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>chapter 2 (top)</title>
+
+<meta name="description" content="chapter 2 (top)">
+<meta name="keywords" content="chapter 2 (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html" rel="up" title="Top">
+<link href="chapter-1.html" rel="prev" title="chapter 1">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent" id="chapter-2">
+<div class="nav-panel">
+<p>
+Previous: <a href="chapter-1.html" accesskey="p" rel="prev">chapter c1</a>, 
Up: <a href="index.html" accesskey="u" rel="up">top</a> &nbsp; </p>
+</div>
+<hr>
+<h2 class="chapter" id="chapter-c2"><span>2 chapter c2<a class="copiable-link" 
href="#chapter-c2"> &para;</a></span></h2>
+</div>
+
+
+
+</body>
+</html>
diff --git 
a/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/index.html 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/index.html
new file mode 100644
index 0000000000..51fed698ea
--- /dev/null
+++ 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/index.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Top (top)</title>
+
+<meta name="description" content="Top (top)">
+<meta name="keywords" content="Top (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#Top" rel="start" title="Top">
+<link href="chapter-1.html" rel="next" title="chapter 1">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="chapter-1.html" accesskey="n" rel="next">chapter c1</a> &nbsp; 
</p>
+</div>
+<hr>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
+
+
+<ul class="mini-toc">
+<li><a href="chapter-1.html" accesskey="1">chapter c1</a></li>
+<li><a href="chapter-2.html" accesskey="2">chapter c2</a></li>
+</ul>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Next: <a href="chapter-1.html" accesskey="n" rel="next">chapter c1</a> &nbsp; 
</p>
+</div>
+
+
+
+</body>
+</html>
diff --git 
a/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/node-between-chapters.html
 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/node-between-chapters.html
new file mode 100644
index 0000000000..70023f9056
--- /dev/null
+++ 
b/tp/t/results/sectioning/two_nodes_between_chapters_nodes/res_html/node-between-chapters.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>node between chapters (top)</title>
+
+<meta name="description" content="node between chapters (top)">
+<meta name="keywords" content="node between chapters (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html" rel="up" title="Top">
+<link href="chapter-2.html" rel="next" title="chapter 2">
+<link href="chapter-1.html" rel="prev" title="chapter 1">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<a class="node-id" id="node-between-chapters"></a><div class="nav-panel">
+<p>
+Next: <a href="chapter-2.html" accesskey="n" rel="next">chapter c2</a>, 
Previous: <a href="chapter-1.html" accesskey="p" rel="prev">chapter c1</a>, Up: 
<a href="index.html" accesskey="u" rel="up">top</a> &nbsp; </p>
+</div>
+<hr>
+<h4 class="node"><span>node between chapters<a class="copiable-link" 
href="#node-between-chapters"> &para;</a></span></h4>
+
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/sectioning/two_nodes_between_chapters_texi2html.pl 
b/tp/t/results/sectioning/two_nodes_between_chapters_texi2html.pl
new file mode 100644
index 0000000000..35b81b74fc
--- /dev/null
+++ b/tp/t/results/sectioning/two_nodes_between_chapters_texi2html.pl
@@ -0,0 +1,749 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'two_nodes_between_chapters_texi2html'} = {
+  'contents' => [
+    {
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'chapter 1'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 'chapter-1'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'node between chapters'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 'node-between-chapters'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 6,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'chapter 2'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 'chapter-2'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 7,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => {
+                      'text' => '
+'
+                    }
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => {
+                  'text' => ' '
+                }
+              },
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 8,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 4,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter 1'
+            }
+          ],
+          'type' => 'line_arg'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          },
+          'info' => {
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'type' => 'line_arg'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'node between chapters'
+            }
+          ],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'node-between-chapters'
+          },
+          'info' => {
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'type' => 'line_arg'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          },
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            },
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter-1'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 10,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter c1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 11,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'node between chapters'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'normalized' => 'node-between-chapters'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 13,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter 2'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter-2'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 15,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter c2'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 16,
+        'macro' => ''
+      }
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'contents'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[3]{'args'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[3]{'args'}[1]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[3]{'args'}[2]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[3]{'args'}[2]{'contents'}[0];
+$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[3]{'args'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'two_nodes_between_chapters_texi2html'}{'contents'}[3]{'args'}[3]{'contents'}[0];
+
+$result_texis{'two_nodes_between_chapters_texi2html'} = '@node Top
+@top top
+
+@menu
+* chapter 1::
+* node between chapters::
+* chapter 2::
+@end menu
+
+@node chapter 1, Top, node between chapters, Top
+@chapter chapter c1
+
+@node node between chapters
+
+@node chapter 2
+@chapter chapter c2
+';
+
+
+$result_texts{'two_nodes_between_chapters_texi2html'} = 'top
+***
+
+* chapter 1::
+* node between chapters::
+* chapter 2::
+
+1 chapter c1
+************
+
+
+2 chapter c2
+************
+';
+
+$result_sectioning{'two_nodes_between_chapters_texi2html'} = {
+  'structure' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            },
+            'structure' => {}
+          }
+        },
+        'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter-1'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            },
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter-2'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 2,
+                'section_prev' => {},
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
+          'section_level' => 0,
+          'section_up' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_prev'}
 = 
$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'two_nodes_between_chapters_texi2html'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'two_nodes_between_chapters_texi2html'};
+
+$result_nodes{'two_nodes_between_chapters_texi2html'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'structure' => {}
+    },
+    'menus' => [
+      {
+        'cmdname' => 'menu'
+      }
+    ],
+    'normalized' => 'Top'
+  },
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'structure' => {
+            'section_number' => 1
+          }
+        },
+        'normalized' => 'chapter-1'
+      },
+      'structure' => {
+        'node_next' => {},
+        'node_prev' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'node-between-chapters'
+          },
+          'structure' => {
+            'node_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'associated_section' => {
+                  'cmdname' => 'chapter',
+                  'extra' => {},
+                  'structure' => {
+                    'section_number' => 2
+                  }
+                },
+                'normalized' => 'chapter-2'
+              },
+              'structure' => {
+                'node_prev' => {},
+                'node_up' => {}
+              }
+            },
+            'node_prev' => {},
+            'node_up' => {}
+          }
+        },
+        'node_up' => {}
+      }
+    },
+    'node_next' => {}
+  }
+};
+$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_next'}
 = $result_nodes{'two_nodes_between_chapters_texi2html'};
+$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'};
+$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'two_nodes_between_chapters_texi2html'};
+$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_prev'}
 = 
$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'};
+$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}{'structure'}{'node_up'}
 = $result_nodes{'two_nodes_between_chapters_texi2html'};
+$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = $result_nodes{'two_nodes_between_chapters_texi2html'};
+$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'node_next'}
 = 
$result_nodes{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'};
+
+$result_menus{'two_nodes_between_chapters_texi2html'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter-1'
+      },
+      'structure' => {
+        'menu_next' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'node-between-chapters'
+          },
+          'structure' => {
+            'menu_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chapter-2'
+              },
+              'structure' => {
+                'menu_prev' => {},
+                'menu_up' => {},
+                'menu_up_hash' => {
+                  'Top' => 1
+                }
+              }
+            },
+            'menu_prev' => {},
+            'menu_up' => {},
+            'menu_up_hash' => {
+              'Top' => 1
+            }
+          }
+        },
+        'menu_up' => {},
+        'menu_up_hash' => {
+          'Top' => 1
+        }
+      }
+    }
+  }
+};
+$result_menus{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'menu_next'};
+$result_menus{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'two_nodes_between_chapters_texi2html'};
+$result_menus{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'};
+$result_menus{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'two_nodes_between_chapters_texi2html'};
+$result_menus{'two_nodes_between_chapters_texi2html'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = $result_menus{'two_nodes_between_chapters_texi2html'};
+
+$result_errors{'two_nodes_between_chapters_texi2html'} = [];
+
+
+$result_floats{'two_nodes_between_chapters_texi2html'} = {};
+
+
+1;
diff --git 
a/tp/t/results/sectioning/two_nodes_between_chapters_texi2html/res_html/two_nodes_between_chapters_texi2html.html
 
b/tp/t/results/sectioning/two_nodes_between_chapters_texi2html/res_html/two_nodes_between_chapters_texi2html.html
new file mode 100644
index 0000000000..987bdb0b6d
--- /dev/null
+++ 
b/tp/t/results/sectioning/two_nodes_between_chapters_texi2html/res_html/two_nodes_between_chapters_texi2html.html
@@ -0,0 +1,207 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span.program-in-footer {font-size: smaller}
+span:hover a.copiable-link {visibility: visible}
+td.button-direction-about {text-align:center}
+td.menu-entry-description {vertical-align: top}
+td.menu-entry-destination {vertical-align: top}
+td.name-direction-about {text-align:center}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[ &lt; ]</td>
+<td>[<a href="#chapter-1" title="Next section in reading order"> &gt; 
</a>]</td>
+<td> &nbsp; </td>
+<td>[Contents]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
+
+<table class="menu" border="0" cellspacing="0">
+<tr><td class="menu-entry-destination"><a href="#chapter-1">1 chapter 
c1</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
+</td></tr>
+<tr><td class="menu-entry-destination">&bull; <a 
href="#node-between-chapters">node between 
chapters</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
+</td></tr>
+<tr><td class="menu-entry-destination"><a href="#chapter-2">2 chapter 
c2</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
+</td></tr>
+</table>
+
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter-1">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[<a href="#Top" title="Beginning of this chapter or previous chapter"> 
&lt;&lt; </a>]</td>
+<td>[<a href="#Top" title="Previous section in reading order"> &lt; </a>]</td>
+<td>[<a href="#Top" title="Up section"> Up </a>]</td>
+<td>[<a href="#chapter-2" title="Next section in reading order"> &gt; 
</a>]</td>
+<td>[<a href="#chapter-2" title="Next chapter"> &gt;&gt; </a>]</td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td>[Contents]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="chapter" id="chapter-c1"><span>1 chapter c1<a class="copiable-link" 
href="#chapter-c1"> &para;</a></span></h1>
+
+<a class="node" id="node-between-chapters"></a>
+<hr>
+</div>
+<div class="chapter-level-extent" id="chapter-2">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[<a href="#chapter-1" title="Beginning of this chapter or previous 
chapter"> &lt;&lt; </a>]</td>
+<td>[<a href="#chapter-1" title="Previous section in reading order"> &lt; 
</a>]</td>
+<td>[<a href="#Top" title="Up section"> Up </a>]</td>
+<td>[ &gt; ]</td>
+<td>[ &gt;&gt; ]</td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td> &nbsp; </td>
+<td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td>[Contents]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="chapter" id="chapter-c2"><span>2 chapter c2<a class="copiable-link" 
href="#chapter-c2"> &para;</a></span></h1>
+<hr style="height: 6px;">
+</div>
+</div>
+<div class="element-about" id="SEC_About">
+<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
+<tr><td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td>[Contents]</td>
+<td>[Index]</td>
+<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="about-heading">About This Document</h1>
+
+<p>
+  This document was generated on <em class="emph">a sunny day</em>.
+</p>
+<p>
+  The buttons in the navigation panels have the following meaning:
+</p>
+<table border="1">
+  <tr>
+    <th> Button </th>
+    <th> Name </th>
+    <th> Go to </th>
+    <th> From 1.2.3 go to</th>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &lt;&lt; ] </td>
+    <td class="name-direction-about">FastBack</td>
+    <td>Beginning of this chapter or previous chapter</td>
+    <td>1</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &lt; ] </td>
+    <td class="name-direction-about">Back</td>
+    <td>Previous section in reading order</td>
+    <td>1.2.2</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ Up ] </td>
+    <td class="name-direction-about">Up</td>
+    <td>Up section</td>
+    <td>1.2</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &gt; ] </td>
+    <td class="name-direction-about">Forward</td>
+    <td>Next section in reading order</td>
+    <td>1.2.4</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ &gt;&gt; ] </td>
+    <td class="name-direction-about">FastForward</td>
+    <td>Next chapter</td>
+    <td>2</td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [Top] </td>
+    <td class="name-direction-about">Top</td>
+    <td>Cover (top) of document</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [Contents] </td>
+    <td class="name-direction-about">Contents</td>
+    <td>Table of contents</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [Index] </td>
+    <td class="name-direction-about">Index</td>
+    <td>Index</td>
+    <td> &nbsp; </td>
+  </tr>
+  <tr>
+    <td class="button-direction-about"> [ ? ] </td>
+    <td class="name-direction-about">About</td>
+    <td>About (help)</td>
+    <td> &nbsp; </td>
+  </tr>
+</table>
+
+<p>
+  where the <strong class="strong"> Example </strong> assumes that the current 
position is at <strong class="strong"> Subsubsection One-Two-Three </strong> of 
a document of the following structure:
+</p>
+
+<ul>
+  <li> 1. Section One
+    <ul>
+      <li>1.1 Subsection One-One
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.2 Subsection One-Two
+        <ul>
+          <li>1.2.1 Subsubsection One-Two-One</li>
+          <li>1.2.2 Subsubsection One-Two-Two</li>
+          <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
+            <strong>&lt;== Current Position </strong></li>
+          <li>1.2.4 Subsubsection One-Two-Four</li>
+        </ul>
+      </li>
+      <li>1.3 Subsection One-Three
+        <ul>
+          <li>...</li>
+        </ul>
+      </li>
+      <li>1.4 Subsection One-Four</li>
+    </ul>
+  </li>
+</ul>
+</div><hr>
+<p>
+  <span class="program-in-footer">This document was generated on <em 
class="emph">a sunny day</em>.</span>
+</p>
+
+
+</body>
+</html>



reply via email to

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