texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Makefile.am (test_files), tp/Makefile.tres,


From: Patrice Dumas
Subject: branch master updated: * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/html_tests.t, tp/tests/contents/Makefile.am (EXTRA_DIST), tp/tests/contents/list-of-tests: remove contents_in_middle_section* tests from tp/tests/contents/list-of-tests, put similar tests in tp/t/html_tests.t and move the Texinfo file accordingly.
Date: Tue, 03 Jan 2023 18:06:32 -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 a3e77c296d * tp/Makefile.am (test_files), tp/Makefile.tres, 
tp/t/html_tests.t, tp/tests/contents/Makefile.am (EXTRA_DIST), 
tp/tests/contents/list-of-tests: remove contents_in_middle_section* tests from 
tp/tests/contents/list-of-tests, put similar tests in tp/t/html_tests.t and 
move the Texinfo file accordingly.
a3e77c296d is described below

commit a3e77c296d91d42b72f8b19fe7085251c3729b8b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Jan 4 00:06:20 2023 +0100

    * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/html_tests.t,
    tp/tests/contents/Makefile.am (EXTRA_DIST),
    tp/tests/contents/list-of-tests: remove contents_in_middle_section*
    tests from tp/tests/contents/list-of-tests, put similar tests in
    tp/t/html_tests.t and move the Texinfo file accordingly.
---
 ChangeLog                                          |   8 +
 tp/Makefile.am                                     |   1 +
 tp/Makefile.tres                                   |   6 +
 tp/t/html_tests.t                                  |  14 +
 .../input_files}/contents_in_middle_section.texi   |   0
 .../html_tests/contents_in_middle_section.pl       | 970 +++++++++++++++++++++
 .../res_html/contents_in_middle_section.html       |  93 ++
 .../contents_in_middle_section_inline.pl           | 970 +++++++++++++++++++++
 .../res_html/contents_in_middle_section.html       |  96 ++
 .../contents_in_middle_section_separate_element.pl | 970 +++++++++++++++++++++
 .../res_html/contents_in_middle_section.html       | 100 +++
 tp/tests/contents/Makefile.am                      |   1 -
 tp/tests/contents/list-of-tests                    |   3 -
 .../contents_in_middle_section.1                   |   0
 .../contents_in_middle_section.2                   |   0
 .../contents_in_middle_section.html                | 257 ------
 .../contents_in_middle_section.1                   |   0
 .../contents_in_middle_section.2                   |   0
 .../contents_in_middle_section.info                |  56 --
 .../contents_in_middle_section.1                   |   0
 .../contents_in_middle_section.2                   |   0
 .../contents_in_middle_section.html                | 251 ------
 .../contents_contents_in_middle_section.sh         |  19 -
 .../contents_contents_in_middle_section_info.sh    |  19 -
 .../contents_contents_in_middle_section_inline.sh  |  19 -
 25 files changed, 3228 insertions(+), 625 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2682409f1f..2919f6da58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-01-03  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/html_tests.t,
+       tp/tests/contents/Makefile.am (EXTRA_DIST),
+       tp/tests/contents/list-of-tests: remove contents_in_middle_section*
+       tests from tp/tests/contents/list-of-tests, put similar tests in
+       tp/t/html_tests.t and move the Texinfo file accordingly.
+
 2023-01-03  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/html_tests.t,
diff --git a/tp/Makefile.am b/tp/Makefile.am
index 1a275c8a66..6a96e5aab9 100644
--- a/tp/Makefile.am
+++ b/tp/Makefile.am
@@ -191,6 +191,7 @@ test_files = \
  t/input_files/contents_at_document_begin.texi \
  t/input_files/contents_at_end.texi \
  t/input_files/contents_in_middle_chapter.texi \
+ t/input_files/contents_in_middle_section.texi \
  t/input_files/cpp_line_before_first_node.texi \
  t/input_files/cpp_lines.texi \
  t/input_files/cpp_line_latin1.texi \
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index c2dcd503cd..f865c57d71 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -601,6 +601,12 @@ test_files_generated_list = 
$(test_tap_files_generated_list) \
   
t/results/html_tests/contents_in_middle_chapter_inline/res_html/contents_in_middle_chapter.html
 \
   t/results/html_tests/contents_in_middle_chapter_separate_element.pl \
   
t/results/html_tests/contents_in_middle_chapter_separate_element/res_html/contents_in_middle_chapter.html
 \
+  t/results/html_tests/contents_in_middle_section.pl \
+  
t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
 \
+  t/results/html_tests/contents_in_middle_section_inline.pl \
+  
t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
 \
+  t/results/html_tests/contents_in_middle_section_separate_element.pl \
+  
t/results/html_tests/contents_in_middle_section_separate_element/res_html/contents_in_middle_section.html
 \
   t/results/html_tests/deftypefnnewline_for_copying_after.pl \
   t/results/html_tests/deftypefnnewline_for_copying_before.pl \
   t/results/html_tests/documentdescription.pl \
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index e2c3e320d1..e0bf496ef0 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -863,6 +863,20 @@ $check_htmlxref_text
   {'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
    'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
 ],
+['contents_in_middle_section',
+  undef, {'test_file' => 'contents_in_middle_section.texi'},
+  {'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['contents_in_middle_section_inline',
+  undef, {'test_file' => 'contents_in_middle_section.texi'},
+  {'CONTENTS_OUTPUT_LOCATION' => 'inline',
+   'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['contents_in_middle_section_separate_element',
+  undef, {'test_file' => 'contents_in_middle_section.texi'},
+  {'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
+   'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
 
 );
 
diff --git a/tp/tests/contents/contents_in_middle_section.texi 
b/tp/t/input_files/contents_in_middle_section.texi
similarity index 100%
rename from tp/tests/contents/contents_in_middle_section.texi
rename to tp/t/input_files/contents_in_middle_section.texi
diff --git a/tp/t/results/html_tests/contents_in_middle_section.pl 
b/tp/t/results/html_tests/contents_in_middle_section.pl
new file mode 100644
index 0000000000..74095da900
--- /dev/null
+++ b/tp/t/results/html_tests/contents_in_middle_section.pl
@@ -0,0 +1,970 @@
+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{'contents_in_middle_section'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'text' => '\\input texinfo @c -*-texinfo-*-
+',
+              'type' => 'text_before_beginning'
+            },
+            {
+              'text' => '
+',
+              'type' => 'text_before_beginning'
+            }
+          ],
+          'type' => 'preamble_before_beginning'
+        },
+        {
+          'contents' => [],
+          'type' => 'preamble_before_content'
+        }
+      ],
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 3,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Contents in section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Content in section.
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => ' 
+'
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'chapter'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'chapter'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 9,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => ' '
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 10,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 8,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 4,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 12,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Chapter 1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => '
+'
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'section'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'section'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 17,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'section1'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'section1'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 18,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => ' '
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 19,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 16,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 13,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'section'
+          }
+        ],
+        'normalized' => 'section'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 21,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'The section with contents
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'args' => [
+            {
+              'text' => '
+',
+              'type' => 'misc_arg'
+            }
+          ],
+          'cmdname' => 'contents',
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 25,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 22,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'section1'
+          }
+        ],
+        'normalized' => 'section1'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 27,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section 1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Section 1.
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 28,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'text' => '
+',
+          'type' => 'misc_arg'
+        }
+      ],
+      'cmdname' => 'bye'
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'contents_in_middle_section'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_in_middle_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'args'}[3];
+$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[5]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[7]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section'}{'contents'}[7]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section'}{'contents'}[7]{'args'}[0]{'contents'}[0];
+
+$result_texis{'contents_in_middle_section'} = '\\input texinfo @c -*-texinfo-*-
+
+@node Top
+@top Contents in section
+
+Content in section.
+
+@menu 
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+
+@menu
+* section::
+* section1::
+@end menu
+
+@node section
+@section section
+
+The section with contents
+@contents
+
+@node section1
+@section section 1
+
+Section 1.
+
+@bye
+';
+
+
+$result_texts{'contents_in_middle_section'} = 'Contents in section
+*******************
+
+Content in section.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+
+* section::
+* section1::
+
+1.1 section
+===========
+
+The section with contents
+
+1.2 section 1
+=============
+
+Section 1.
+
+';
+
+$result_sectioning{'contents_in_middle_section'} = {
+  'structure' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            },
+            'info' => {},
+            'structure' => {}
+          }
+        },
+        'info' => {},
+        'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter'
+                  },
+                  'info' => {},
+                  'structure' => {}
+                }
+              },
+              'info' => {},
+              'structure' => {
+                'section_childs' => [
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'section'
+                        },
+                        'info' => {},
+                        'structure' => {}
+                      }
+                    },
+                    'info' => {},
+                    'structure' => {
+                      'section_level' => 2,
+                      'section_number' => '1.1',
+                      'section_up' => {}
+                    }
+                  },
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'section1'
+                        },
+                        'info' => {},
+                        'structure' => {}
+                      }
+                    },
+                    'info' => {},
+                    'structure' => {
+                      'section_level' => 2,
+                      'section_number' => '1.2',
+                      'section_prev' => {},
+                      'section_up' => {}
+                    }
+                  }
+                ],
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
+          'section_level' => 0,
+          'section_up' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_prev'}
 = 
$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'contents_in_middle_section'};
+
+$result_nodes{'contents_in_middle_section'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'info' => {},
+      'structure' => {}
+    },
+    'menus' => [
+      {
+        'cmdname' => 'menu'
+      }
+    ],
+    'normalized' => 'Top'
+  },
+  'info' => {},
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'info' => {},
+          'structure' => {
+            'section_number' => 1
+          }
+        },
+        'menus' => [
+          {
+            'cmdname' => 'menu'
+          }
+        ],
+        'normalized' => 'chapter'
+      },
+      'info' => {},
+      'structure' => {
+        'menu_child' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'associated_section' => {
+              'cmdname' => 'section',
+              'extra' => {},
+              'info' => {},
+              'structure' => {
+                'section_number' => '1.1'
+              }
+            },
+            'normalized' => 'section'
+          },
+          'info' => {},
+          'structure' => {
+            'node_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'associated_section' => {
+                  'cmdname' => 'section',
+                  'extra' => {},
+                  'info' => {},
+                  'structure' => {
+                    'section_number' => '1.2'
+                  }
+                },
+                'normalized' => 'section1'
+              },
+              'info' => {},
+              'structure' => {
+                'node_prev' => {},
+                'node_up' => {}
+              }
+            },
+            'node_up' => {}
+          }
+        },
+        'node_prev' => {},
+        'node_up' => {}
+      }
+    },
+    'node_next' => {}
+  }
+};
+$result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = $result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
 = $result_nodes{'contents_in_middle_section'};
+$result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = $result_nodes{'contents_in_middle_section'};
+$result_nodes{'contents_in_middle_section'}{'structure'}{'node_next'} = 
$result_nodes{'contents_in_middle_section'}{'structure'}{'menu_child'};
+
+$result_menus{'contents_in_middle_section'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'info' => {},
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter'
+      },
+      'info' => {},
+      'structure' => {
+        'menu_child' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'section'
+          },
+          'info' => {},
+          'structure' => {
+            'menu_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'section1'
+              },
+              'info' => {},
+              'structure' => {
+                'menu_prev' => {},
+                'menu_up' => {},
+                'menu_up_hash' => {
+                  'chapter' => 1
+                }
+              }
+            },
+            'menu_up' => {},
+            'menu_up_hash' => {
+              'chapter' => 1
+            }
+          }
+        },
+        'menu_up' => {},
+        'menu_up_hash' => {
+          'Top' => 1
+        }
+      }
+    }
+  }
+};
+$result_menus{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'contents_in_middle_section'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = $result_menus{'contents_in_middle_section'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = $result_menus{'contents_in_middle_section'};
+
+$result_errors{'contents_in_middle_section'} = [];
+
+
+$result_floats{'contents_in_middle_section'} = {};
+
+
+1;
diff --git 
a/tp/t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
 
b/tp/t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
new file mode 100644
index 0000000000..ecab9a9260
--- /dev/null
+++ 
b/tp/t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
@@ -0,0 +1,93 @@
+<!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>Contents in section</title>
+
+<meta name="description" content="Contents in section">
+<meta name="keywords" content="Contents in section">
+<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="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="#chapter" rel="next" title="chapter">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Contents-in-section">Contents in section</h1>
+
+<p>Content in section.
+</p>
+
+<div class="element-contents" id="SEC_Contents">
+<h2 class="contents-heading">Table of Contents</h2>
+
+<div class="contents">
+
+<ul class="toc-numbered-mark">
+  <li><a id="toc-Chapter-1" href="#chapter">1 Chapter 1</a>
+  <ul class="toc-numbered-mark">
+    <li><a id="toc-section-1" href="#section">1.1 section</a></li>
+    <li><a id="toc-section-1-1" href="#section1">1.2 section 1</a></li>
+  </ul></li>
+</ul>
+</div>
+</div>
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents in section</a>, Up: 
<a href="#Top" accesskey="u" rel="up">Contents in section</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section</a></li>
+<li><a href="#section1" accesskey="2">section 1</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Next: <a href="#section1" accesskey="n" rel="next">section 1</a>, Up: <a 
href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-1">1.1 section</h3>
+
+<p>The section with contents
+</p>
+<hr>
+</div>
+<div class="section-level-extent" id="section1">
+<div class="nav-panel">
+<p>
+Previous: <a href="#section" accesskey="p" rel="prev">section</a>, Up: <a 
href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-1-1">1.2 section 1</h3>
+
+<p>Section 1.
+</p>
+</div>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/html_tests/contents_in_middle_section_inline.pl 
b/tp/t/results/html_tests/contents_in_middle_section_inline.pl
new file mode 100644
index 0000000000..32b498df46
--- /dev/null
+++ b/tp/t/results/html_tests/contents_in_middle_section_inline.pl
@@ -0,0 +1,970 @@
+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{'contents_in_middle_section_inline'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'text' => '\\input texinfo @c -*-texinfo-*-
+',
+              'type' => 'text_before_beginning'
+            },
+            {
+              'text' => '
+',
+              'type' => 'text_before_beginning'
+            }
+          ],
+          'type' => 'preamble_before_beginning'
+        },
+        {
+          'contents' => [],
+          'type' => 'preamble_before_content'
+        }
+      ],
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 3,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Contents in section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Content in section.
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => ' 
+'
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'chapter'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'chapter'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 9,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => ' '
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 10,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 8,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 4,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 12,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Chapter 1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => '
+'
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'section'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'section'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 17,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'section1'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'section1'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 18,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => ' '
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 19,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 16,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 13,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'section'
+          }
+        ],
+        'normalized' => 'section'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 21,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'The section with contents
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'args' => [
+            {
+              'text' => '
+',
+              'type' => 'misc_arg'
+            }
+          ],
+          'cmdname' => 'contents',
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 25,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 22,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'section1'
+          }
+        ],
+        'normalized' => 'section1'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 27,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section 1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Section 1.
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 28,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'text' => '
+',
+          'type' => 'misc_arg'
+        }
+      ],
+      'cmdname' => 'bye'
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'args'}[3];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[5]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[7]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_inline'}{'contents'}[7]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_inline'}{'contents'}[7]{'args'}[0]{'contents'}[0];
+
+$result_texis{'contents_in_middle_section_inline'} = '\\input texinfo @c 
-*-texinfo-*-
+
+@node Top
+@top Contents in section
+
+Content in section.
+
+@menu 
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+
+@menu
+* section::
+* section1::
+@end menu
+
+@node section
+@section section
+
+The section with contents
+@contents
+
+@node section1
+@section section 1
+
+Section 1.
+
+@bye
+';
+
+
+$result_texts{'contents_in_middle_section_inline'} = 'Contents in section
+*******************
+
+Content in section.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+
+* section::
+* section1::
+
+1.1 section
+===========
+
+The section with contents
+
+1.2 section 1
+=============
+
+Section 1.
+
+';
+
+$result_sectioning{'contents_in_middle_section_inline'} = {
+  'structure' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            },
+            'info' => {},
+            'structure' => {}
+          }
+        },
+        'info' => {},
+        'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter'
+                  },
+                  'info' => {},
+                  'structure' => {}
+                }
+              },
+              'info' => {},
+              'structure' => {
+                'section_childs' => [
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'section'
+                        },
+                        'info' => {},
+                        'structure' => {}
+                      }
+                    },
+                    'info' => {},
+                    'structure' => {
+                      'section_level' => 2,
+                      'section_number' => '1.1',
+                      'section_up' => {}
+                    }
+                  },
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'section1'
+                        },
+                        'info' => {},
+                        'structure' => {}
+                      }
+                    },
+                    'info' => {},
+                    'structure' => {
+                      'section_level' => 2,
+                      'section_number' => '1.2',
+                      'section_prev' => {},
+                      'section_up' => {}
+                    }
+                  }
+                ],
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
+          'section_level' => 0,
+          'section_up' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_prev'}
 = 
$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'contents_in_middle_section_inline'};
+
+$result_nodes{'contents_in_middle_section_inline'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'info' => {},
+      'structure' => {}
+    },
+    'menus' => [
+      {
+        'cmdname' => 'menu'
+      }
+    ],
+    'normalized' => 'Top'
+  },
+  'info' => {},
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'info' => {},
+          'structure' => {
+            'section_number' => 1
+          }
+        },
+        'menus' => [
+          {
+            'cmdname' => 'menu'
+          }
+        ],
+        'normalized' => 'chapter'
+      },
+      'info' => {},
+      'structure' => {
+        'menu_child' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'associated_section' => {
+              'cmdname' => 'section',
+              'extra' => {},
+              'info' => {},
+              'structure' => {
+                'section_number' => '1.1'
+              }
+            },
+            'normalized' => 'section'
+          },
+          'info' => {},
+          'structure' => {
+            'node_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'associated_section' => {
+                  'cmdname' => 'section',
+                  'extra' => {},
+                  'info' => {},
+                  'structure' => {
+                    'section_number' => '1.2'
+                  }
+                },
+                'normalized' => 'section1'
+              },
+              'info' => {},
+              'structure' => {
+                'node_prev' => {},
+                'node_up' => {}
+              }
+            },
+            'node_up' => {}
+          }
+        },
+        'node_prev' => {},
+        'node_up' => {}
+      }
+    },
+    'node_next' => {}
+  }
+};
+$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = 
$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = 
$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
 = $result_nodes{'contents_in_middle_section_inline'};
+$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = $result_nodes{'contents_in_middle_section_inline'};
+$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'node_next'} = 
$result_nodes{'contents_in_middle_section_inline'}{'structure'}{'menu_child'};
+
+$result_menus{'contents_in_middle_section_inline'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'info' => {},
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter'
+      },
+      'info' => {},
+      'structure' => {
+        'menu_child' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'section'
+          },
+          'info' => {},
+          'structure' => {
+            'menu_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'section1'
+              },
+              'info' => {},
+              'structure' => {
+                'menu_prev' => {},
+                'menu_up' => {},
+                'menu_up_hash' => {
+                  'chapter' => 1
+                }
+              }
+            },
+            'menu_up' => {},
+            'menu_up_hash' => {
+              'chapter' => 1
+            }
+          }
+        },
+        'menu_up' => {},
+        'menu_up_hash' => {
+          'Top' => 1
+        }
+      }
+    }
+  }
+};
+$result_menus{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = 
$result_menus{'contents_in_middle_section_inline'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = 
$result_menus{'contents_in_middle_section_inline'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = $result_menus{'contents_in_middle_section_inline'};
+
+$result_errors{'contents_in_middle_section_inline'} = [];
+
+
+$result_floats{'contents_in_middle_section_inline'} = {};
+
+
+1;
diff --git 
a/tp/t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
 
b/tp/t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
new file mode 100644
index 0000000000..a024547eff
--- /dev/null
+++ 
b/tp/t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
@@ -0,0 +1,96 @@
+<!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>Contents in section</title>
+
+<meta name="description" content="Contents in section">
+<meta name="keywords" content="Contents in section">
+<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="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="#chapter" rel="next" title="chapter">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Contents-in-section">Contents in section</h1>
+
+<p>Content in section.
+</p>
+
+<ul class="mini-toc">
+<li><a href="#chapter" accesskey="1">Chapter 1</a></li>
+</ul>
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents in section</a>, Up: 
<a href="#Top" accesskey="u" rel="up">Contents in section</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section</a></li>
+<li><a href="#section1" accesskey="2">section 1</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Next: <a href="#section1" accesskey="n" rel="next">section 1</a>, Up: <a 
href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-1">1.1 section</h3>
+
+<p>The section with contents
+</p><div class="element-contents" id="SEC_Contents">
+<h2 class="contents-heading">Table of Contents</h2>
+
+<div class="contents">
+
+<ul class="toc-numbered-mark">
+  <li><a id="toc-Chapter-1" href="#chapter">1 Chapter 1</a>
+  <ul class="toc-numbered-mark">
+    <li><a id="toc-section-1" href="#section">1.1 section</a></li>
+    <li><a id="toc-section-1-1" href="#section1">1.2 section 1</a></li>
+  </ul></li>
+</ul>
+</div>
+</div>
+
+<hr>
+</div>
+<div class="section-level-extent" id="section1">
+<div class="nav-panel">
+<p>
+Previous: <a href="#section" accesskey="p" rel="prev">section</a>, Up: <a 
href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-1-1">1.2 section 1</h3>
+
+<p>Section 1.
+</p>
+</div>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git 
a/tp/t/results/html_tests/contents_in_middle_section_separate_element.pl 
b/tp/t/results/html_tests/contents_in_middle_section_separate_element.pl
new file mode 100644
index 0000000000..9e54e89ec4
--- /dev/null
+++ b/tp/t/results/html_tests/contents_in_middle_section_separate_element.pl
@@ -0,0 +1,970 @@
+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{'contents_in_middle_section_separate_element'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'text' => '\\input texinfo @c -*-texinfo-*-
+',
+              'type' => 'text_before_beginning'
+            },
+            {
+              'text' => '
+',
+              'type' => 'text_before_beginning'
+            }
+          ],
+          'type' => 'preamble_before_beginning'
+        },
+        {
+          'contents' => [],
+          'type' => 'preamble_before_content'
+        }
+      ],
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 3,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Contents in section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Content in section.
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => ' 
+'
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'chapter'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'chapter'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 9,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => ' '
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 10,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 8,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 4,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 12,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Chapter 1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => '
+'
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'menu',
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'section'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'section'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 17,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'section1'
+                    }
+                  ],
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'section1'
+                }
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 18,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'menu'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => ' '
+              },
+              'source_info' => {
+                'file_name' => 'contents_in_middle_section.texi',
+                'line_nr' => 19,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 16,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 13,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'section'
+          }
+        ],
+        'normalized' => 'section'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 21,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'The section with contents
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'args' => [
+            {
+              'text' => '
+',
+              'type' => 'misc_arg'
+            }
+          ],
+          'cmdname' => 'contents',
+          'source_info' => {
+            'file_name' => 'contents_in_middle_section.texi',
+            'line_nr' => 25,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 22,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'section1'
+          }
+        ],
+        'normalized' => 'section1'
+      },
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 27,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'section 1'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => '
+'
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'Section 1.
+'
+            }
+          ],
+          'type' => 'paragraph'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => ' '
+      },
+      'source_info' => {
+        'file_name' => 'contents_in_middle_section.texi',
+        'line_nr' => 28,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'text' => '
+',
+          'type' => 'misc_arg'
+        }
+      ],
+      'cmdname' => 'bye'
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'args'}[3];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[4]{'contents'}[2]{'contents'}[1]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[5]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[7]{'extra'}{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[7]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'contents_in_middle_section_separate_element'}{'contents'}[7]{'args'}[0]{'contents'}[0];
+
+$result_texis{'contents_in_middle_section_separate_element'} = '\\input 
texinfo @c -*-texinfo-*-
+
+@node Top
+@top Contents in section
+
+Content in section.
+
+@menu 
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+
+@menu
+* section::
+* section1::
+@end menu
+
+@node section
+@section section
+
+The section with contents
+@contents
+
+@node section1
+@section section 1
+
+Section 1.
+
+@bye
+';
+
+
+$result_texts{'contents_in_middle_section_separate_element'} = 'Contents in 
section
+*******************
+
+Content in section.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+
+* section::
+* section1::
+
+1.1 section
+===========
+
+The section with contents
+
+1.2 section 1
+=============
+
+Section 1.
+
+';
+
+$result_sectioning{'contents_in_middle_section_separate_element'} = {
+  'structure' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            },
+            'info' => {},
+            'structure' => {}
+          }
+        },
+        'info' => {},
+        'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter'
+                  },
+                  'info' => {},
+                  'structure' => {}
+                }
+              },
+              'info' => {},
+              'structure' => {
+                'section_childs' => [
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'section'
+                        },
+                        'info' => {},
+                        'structure' => {}
+                      }
+                    },
+                    'info' => {},
+                    'structure' => {
+                      'section_level' => 2,
+                      'section_number' => '1.1',
+                      'section_up' => {}
+                    }
+                  },
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'section1'
+                        },
+                        'info' => {},
+                        'structure' => {}
+                      }
+                    },
+                    'info' => {},
+                    'structure' => {
+                      'section_level' => 2,
+                      'section_number' => '1.2',
+                      'section_prev' => {},
+                      'section_up' => {}
+                    }
+                  }
+                ],
+                'section_level' => 1,
+                'section_number' => 1,
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            }
+          ],
+          'section_level' => 0,
+          'section_up' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_prev'}
 = 
$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_in_middle_section_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'contents_in_middle_section_separate_element'};
+
+$result_nodes{'contents_in_middle_section_separate_element'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'info' => {},
+      'structure' => {}
+    },
+    'menus' => [
+      {
+        'cmdname' => 'menu'
+      }
+    ],
+    'normalized' => 'Top'
+  },
+  'info' => {},
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'info' => {},
+          'structure' => {
+            'section_number' => 1
+          }
+        },
+        'menus' => [
+          {
+            'cmdname' => 'menu'
+          }
+        ],
+        'normalized' => 'chapter'
+      },
+      'info' => {},
+      'structure' => {
+        'menu_child' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'associated_section' => {
+              'cmdname' => 'section',
+              'extra' => {},
+              'info' => {},
+              'structure' => {
+                'section_number' => '1.1'
+              }
+            },
+            'normalized' => 'section'
+          },
+          'info' => {},
+          'structure' => {
+            'node_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'associated_section' => {
+                  'cmdname' => 'section',
+                  'extra' => {},
+                  'info' => {},
+                  'structure' => {
+                    'section_number' => '1.2'
+                  }
+                },
+                'normalized' => 'section1'
+              },
+              'info' => {},
+              'structure' => {
+                'node_prev' => {},
+                'node_up' => {}
+              }
+            },
+            'node_up' => {}
+          }
+        },
+        'node_prev' => {},
+        'node_up' => {}
+      }
+    },
+    'node_next' => {}
+  }
+};
+$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = 
$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = 
$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'};
+$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
 = $result_nodes{'contents_in_middle_section_separate_element'};
+$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
 = $result_nodes{'contents_in_middle_section_separate_element'};
+$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'node_next'}
 = 
$result_nodes{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'};
+
+$result_menus{'contents_in_middle_section_separate_element'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'info' => {},
+  'structure' => {
+    'menu_child' => {
+      'cmdname' => 'node',
+      'extra' => {
+        'normalized' => 'chapter'
+      },
+      'info' => {},
+      'structure' => {
+        'menu_child' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'section'
+          },
+          'info' => {},
+          'structure' => {
+            'menu_next' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'section1'
+              },
+              'info' => {},
+              'structure' => {
+                'menu_prev' => {},
+                'menu_up' => {},
+                'menu_up_hash' => {
+                  'chapter' => 1
+                }
+              }
+            },
+            'menu_up' => {},
+            'menu_up_hash' => {
+              'chapter' => 1
+            }
+          }
+        },
+        'menu_up' => {},
+        'menu_up_hash' => {
+          'Top' => 1
+        }
+      }
+    }
+  }
+};
+$result_menus{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = 
$result_menus{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = 
$result_menus{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'};
+$result_menus{'contents_in_middle_section_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
 = $result_menus{'contents_in_middle_section_separate_element'};
+
+$result_errors{'contents_in_middle_section_separate_element'} = [];
+
+
+$result_floats{'contents_in_middle_section_separate_element'} = {};
+
+
+1;
diff --git 
a/tp/t/results/html_tests/contents_in_middle_section_separate_element/res_html/contents_in_middle_section.html
 
b/tp/t/results/html_tests/contents_in_middle_section_separate_element/res_html/contents_in_middle_section.html
new file mode 100644
index 0000000000..9223571071
--- /dev/null
+++ 
b/tp/t/results/html_tests/contents_in_middle_section_separate_element/res_html/contents_in_middle_section.html
@@ -0,0 +1,100 @@
+<!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>Contents in section</title>
+
+<meta name="description" content="Contents in section">
+<meta name="keywords" content="Contents in section">
+<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="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="#chapter" rel="next" title="chapter">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Contents-in-section">Contents in section</h1>
+
+<p>Content in section.
+</p>
+
+<ul class="mini-toc">
+<li><a href="#chapter" accesskey="1">Chapter 1</a></li>
+</ul>
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents in section</a>, Up: 
<a href="#Top" accesskey="u" rel="up">Contents in section</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section</a></li>
+<li><a href="#section1" accesskey="2">section 1</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Next: <a href="#section1" accesskey="n" rel="next">section 1</a>, Up: <a 
href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-1">1.1 section</h3>
+
+<p>The section with contents
+</p>
+<hr>
+</div>
+<div class="section-level-extent" id="section1">
+<div class="nav-panel">
+<p>
+Previous: <a href="#section" accesskey="p" rel="prev">section</a>, Up: <a 
href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-1-1">1.2 section 1</h3>
+
+<p>Section 1.
+</p>
+<hr style="height: 6px;">
+</div>
+</div>
+</div>
+<div class="element-contents" id="SEC_Contents">
+<div class="nav-panel">
+<p>
+ &nbsp; [<a href="#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>]</p>
+</div>
+<h2 class="contents-heading">Table of Contents</h2>
+
+<div class="contents">
+
+<ul class="toc-numbered-mark">
+  <li><a id="toc-Chapter-1" href="#chapter">1 Chapter 1</a>
+  <ul class="toc-numbered-mark">
+    <li><a id="toc-section-1" href="#section">1.1 section</a></li>
+    <li><a id="toc-section-1-1" href="#section1">1.2 section 1</a></li>
+  </ul></li>
+</ul>
+</div>
+</div>
+
+
+</body>
+</html>
diff --git a/tp/tests/contents/Makefile.am b/tp/tests/contents/Makefile.am
index e558abe9c6..2dbd8cf92b 100644
--- a/tp/tests/contents/Makefile.am
+++ b/tp/tests/contents/Makefile.am
@@ -1,5 +1,4 @@
 EXTRA_DIST = \
- contents_in_middle_section.texi \
  double_contents.texi no_content.texi \
  contents_and_parts.texi \
  res_parser list-of-tests
diff --git a/tp/tests/contents/list-of-tests b/tp/tests/contents/list-of-tests
index ac5659252c..7034f8eafd 100644
--- a/tp/tests/contents/list-of-tests
+++ b/tp/tests/contents/list-of-tests
@@ -1,11 +1,9 @@
-contents_in_middle_section contents_in_middle_section.texi
 double_contents double_contents.texi
 double_contents_chapter double_contents.texi --split chapter
 double_contents_section double_contents.texi --split section
 double_contents_nodes double_contents.texi --split node
 no_content no_content.texi
 no_content_do_contents no_content.texi -c 'contents 1'
-contents_in_middle_section_inline contents_in_middle_section.texi -c 
'CONTENTS_OUTPUT_LOCATION inline'
 double_contents_inline double_contents.texi -c 'CONTENTS_OUTPUT_LOCATION 
inline'
 double_contents_inline_chapter double_contents.texi -c 
'CONTENTS_OUTPUT_LOCATION inline' --split chapter
 double_contents_inline_section double_contents.texi -c 
'CONTENTS_OUTPUT_LOCATION inline' --split section
@@ -20,6 +18,5 @@ double_contents_after_title_book_chapter double_contents.texi 
--init book.pm --s
 
 contents_and_parts contents_and_parts.texi
 
-contents_in_middle_section_info contents_in_middle_section.texi --info
 double_contents_info double_contents.texi --info
 
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.1
 
b/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.2
 
b/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.html
 
b/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.html
deleted file mode 100644
index 3aaa140fd5..0000000000
--- 
a/tp/tests/contents/res_parser/contents_in_middle_section/contents_in_middle_section.html
+++ /dev/null
@@ -1,257 +0,0 @@
-<!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>Contents in section</title>
-
-<meta name="description" content="Contents in section">
-<meta name="keywords" content="Contents in section">
-<meta name="resource-type" content="document">
-<meta name="distribution" content="global">
-<meta name="Generator" content="texi2any">
-<meta name="viewport" content="width=device-width,initial-scale=1">
-
-<style type="text/css">
-<!--
-span.program-in-footer {font-size: smaller}
-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="Contents-in-section">Contents in section</h1>
-
-<p>Content in section.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#chapter">1 Chapter 
1</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" 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" id="Chapter-1">1 Chapter 1</h1>
-
-
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#section">1.1 
section</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
-</td></tr>
-<tr><td class="menu-entry-destination"><a href="#section1">1.2 section 
1</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-<hr>
-<div class="section-level-extent" id="section">
-<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>[<a href="#section1" 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>
-<h2 class="section" id="section-1">1.1 section</h2>
-
-<p>The section with contents
-</p>
-<hr>
-</div>
-<div class="section-level-extent" id="section1">
-<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="#section" 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-1-1">1.2 section 1</h2>
-
-<p>Section 1.
-</p>
-<hr style="height: 6px;">
-</div>
-</div>
-</div>
-<div class="element-contents" id="SEC_Contents">
-<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="contents-heading">Table of Contents</h1>
-
-<div class="contents">
-
-<ul class="toc-numbered-mark">
-  <li><a id="toc-Chapter-1" href="#chapter">1 Chapter 1</a>
-  <ul class="toc-numbered-mark">
-    <li><a id="toc-section-1" href="#section">1.1 section</a></li>
-    <li><a id="toc-section-1-1" href="#section1">1.2 section 1</a></li>
-  </ul></li>
-</ul>
-</div>
-</div><hr>
-<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> using <a 
class="uref" href="http://www.gnu.org/software/texinfo/";><em 
class="emph">texi2any</em></a>.
-</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> using <a class="uref" 
href="http://www.gnu.org/software/texinfo/";><em 
class="emph">texi2any</em></a>.</span>
-</p>
-
-
-</body>
-</html>
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.1
 
b/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.2
 
b/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.info
 
b/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.info
deleted file mode 100644
index 241709b56e..0000000000
--- 
a/tp/tests/contents/res_parser/contents_in_middle_section_info/contents_in_middle_section.info
+++ /dev/null
@@ -1,56 +0,0 @@
-This is contents_in_middle_section.info, produced by texi2any version
-from contents_in_middle_section.texi.
-
-
-File: contents_in_middle_section.info,  Node: Top,  Next: chapter,  Up: (dir)
-
-Contents in section
-*******************
-
-Content in section.
-
-* Menu:
-
-* chapter::
-
-
-File: contents_in_middle_section.info,  Node: chapter,  Prev: Top,  Up: Top
-
-1 Chapter 1
-***********
-
-* Menu:
-
-* section::
-* section1::
-
-
-File: contents_in_middle_section.info,  Node: section,  Next: section1,  Up: 
chapter
-
-1.1 section
-===========
-
-The section with contents
-
-
-File: contents_in_middle_section.info,  Node: section1,  Prev: section,  Up: 
chapter
-
-1.2 section 1
-=============
-
-Section 1.
-
-
-
-Tag Table:
-Node: Top109
-Node: chapter274
-Node: section413
-Node: section1553
-
-End Tag Table
-
-
-Local Variables:
-coding: utf-8
-End:
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.1
 
b/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.2
 
b/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git 
a/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.html
 
b/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.html
deleted file mode 100644
index 7306f8dff9..0000000000
--- 
a/tp/tests/contents/res_parser/contents_in_middle_section_inline/contents_in_middle_section.html
+++ /dev/null
@@ -1,251 +0,0 @@
-<!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>Contents in section</title>
-
-<meta name="description" content="Contents in section">
-<meta name="keywords" content="Contents in section">
-<meta name="resource-type" content="document">
-<meta name="distribution" content="global">
-<meta name="Generator" content="texi2any">
-<meta name="viewport" content="width=device-width,initial-scale=1">
-
-<style type="text/css">
-<!--
-span.program-in-footer {font-size: smaller}
-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="Contents-in-section">Contents in section</h1>
-
-<p>Content in section.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#chapter">1 Chapter 
1</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" 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" id="Chapter-1">1 Chapter 1</h1>
-
-
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#section">1.1 
section</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
-</td></tr>
-<tr><td class="menu-entry-destination"><a href="#section1">1.2 section 
1</a></td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-<hr>
-<div class="section-level-extent" id="section">
-<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>[<a href="#section1" 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>
-<h2 class="section" id="section-1">1.1 section</h2>
-
-<p>The section with contents
-</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-1" href="#chapter">1 Chapter 1</a>
-  <ul class="toc-numbered-mark">
-    <li><a id="toc-section-1" href="#section">1.1 section</a></li>
-    <li><a id="toc-section-1-1" href="#section1">1.2 section 1</a></li>
-  </ul></li>
-</ul>
-</div>
-</div>
-
-<hr>
-</div>
-<div class="section-level-extent" id="section1">
-<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="#section" 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-1-1">1.2 section 1</h2>
-
-<p>Section 1.
-</p>
-<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> using <a 
class="uref" href="http://www.gnu.org/software/texinfo/";><em 
class="emph">texi2any</em></a>.
-</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> using <a class="uref" 
href="http://www.gnu.org/software/texinfo/";><em 
class="emph">texi2any</em></a>.</span>
-</p>
-
-
-</body>
-</html>
diff --git a/tp/tests/test_scripts/contents_contents_in_middle_section.sh 
b/tp/tests/test_scripts/contents_contents_in_middle_section.sh
deleted file mode 100755
index 5f586875a4..0000000000
--- a/tp/tests/test_scripts/contents_contents_in_middle_section.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-# This file generated by maintain/regenerate_cmd_tests.sh
-
-if test z"$srcdir" = "z"; then
-  srcdir=.
-fi
-
-one_test_logs_dir=test_log
-
-
-dir=contents
-name='contents_in_middle_section'
-mkdir -p $dir
-
-"$srcdir"/run_parser_all.sh -dir $dir $name
-exit_status=$?
-cat $dir/$one_test_logs_dir/$name.log
-exit $exit_status
-
diff --git a/tp/tests/test_scripts/contents_contents_in_middle_section_info.sh 
b/tp/tests/test_scripts/contents_contents_in_middle_section_info.sh
deleted file mode 100755
index 5ef81dda04..0000000000
--- a/tp/tests/test_scripts/contents_contents_in_middle_section_info.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-# This file generated by maintain/regenerate_cmd_tests.sh
-
-if test z"$srcdir" = "z"; then
-  srcdir=.
-fi
-
-one_test_logs_dir=test_log
-
-
-dir=contents
-name='contents_in_middle_section_info'
-mkdir -p $dir
-
-"$srcdir"/run_parser_all.sh -dir $dir $name
-exit_status=$?
-cat $dir/$one_test_logs_dir/$name.log
-exit $exit_status
-
diff --git 
a/tp/tests/test_scripts/contents_contents_in_middle_section_inline.sh 
b/tp/tests/test_scripts/contents_contents_in_middle_section_inline.sh
deleted file mode 100755
index 06f6a37274..0000000000
--- a/tp/tests/test_scripts/contents_contents_in_middle_section_inline.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-# This file generated by maintain/regenerate_cmd_tests.sh
-
-if test z"$srcdir" = "z"; then
-  srcdir=.
-fi
-
-one_test_logs_dir=test_log
-
-
-dir=contents
-name='contents_in_middle_section_inline'
-mkdir -p $dir
-
-"$srcdir"/run_parser_all.sh -dir $dir $name
-exit_status=$?
-cat $dir/$one_test_logs_dir/$name.log
-exit $exit_status
-



reply via email to

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