[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*, contents_in_middle_chapter*, contents_at_end* and most of tests involving double_contents.texi from tp/tests/contents/list-of-tests, put similar tests in tp/t/html_tests.t and move the Texinfo file accordingly. Tests using the book.init init file need to stay in tp/tests/contents/list-of-tests, for those tests, [...] |
Date: |
Tue, 03 Jan 2023 19:02:35 -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 6f95f1681d * 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*,
contents_in_middle_chapter*, contents_at_end* and most of tests involving
double_contents.texi from tp/tests/contents/list-of-tests, put similar tests in
tp/t/html_tests.t and move the Texinfo file accordingly. Tests using the
book.init init file need to stay in tp/tests/contents/list-of-tes [...]
6f95f1681d is described below
commit 6f95f1681d58da8a1e8245bfd2be41dd85d55936
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Jan 4 01:02:24 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*,
contents_in_middle_chapter*, contents_at_end* and most of tests
involving double_contents.texi from tp/tests/contents/list-of-tests,
put similar tests in tp/t/html_tests.t and move the Texinfo file
accordingly.
Tests using the book.init init file need to stay in
tp/tests/contents/list-of-tests, for those tests, do not use the
texi2html style anymore.
---
ChangeLog | 27 +-
tp/Makefile.am | 1 +
tp/Makefile.tres | 55 ++
tp/t/html_tests.t | 83 +++
.../input_files}/double_contents.texi | 0
tp/t/results/html_tests/double_contents.pl | 793 +++++++++++++++++++++
.../double_contents/res_html/double_contents.html | 80 +++
.../html_tests/double_contents_after_title.pl | 793 +++++++++++++++++++++
.../res_html/double_contents.html | 65 ++
.../double_contents_after_title_show_title.pl | 793 +++++++++++++++++++++
.../res_html/double_contents.html | 84 +++
...double_contents_after_title_show_title_nodes.pl | 793 +++++++++++++++++++++
.../res_html}/chapter.html | 1 -
.../res_html}/index.html | 1 -
.../res_html}/section.html | 1 -
tp/t/results/html_tests/double_contents_chapter.pl | 793 +++++++++++++++++++++
.../double_contents_chapter/res_html}/chapter.html | 18 +-
.../double_contents_chapter/res_html}/index.html | 36 +-
.../double_contents_chapter/res_html}/section.html | 1 -
tp/t/results/html_tests/double_contents_inline.pl | 793 +++++++++++++++++++++
.../res_html/double_contents.html | 109 +++
.../html_tests/double_contents_inline_chapter.pl | 793 +++++++++++++++++++++
.../res_html/chapter.html | 86 +++
.../res_html}/index.html | 15 +-
.../res_html}/section.html | 1 -
.../html_tests/double_contents_inline_nodes.pl | 793 +++++++++++++++++++++
.../res_html}/chapter.html | 19 +-
.../res_html}/index.html | 2 -
.../res_html}/section.html | 19 +-
.../html_tests/double_contents_inline_section.pl | 793 +++++++++++++++++++++
.../res_html}/chapter.html | 25 +-
.../res_html}/index.html | 3 -
.../res_html}/section.html | 25 +-
tp/t/results/html_tests/double_contents_nodes.pl | 793 +++++++++++++++++++++
.../double_contents_nodes/res_html}/chapter.html | 1 -
.../double_contents_nodes/res_html}/index.html | 29 +-
.../double_contents_nodes/res_html}/section.html | 1 -
tp/t/results/html_tests/double_contents_section.pl | 793 +++++++++++++++++++++
.../double_contents_section/res_html}/chapter.html | 7 +-
.../double_contents_section/res_html}/index.html | 28 +-
.../double_contents_section/res_html}/section.html | 7 +-
.../html_tests/double_contents_separate_element.pl | 793 +++++++++++++++++++++
.../res_html/double_contents.html | 87 +++
.../double_contents_separate_element_chapter.pl | 793 +++++++++++++++++++++
.../res_html}/chapter.html | 22 +-
.../res_html/double_contents_toc.html | 51 ++
.../res_html/index.html | 46 ++
.../res_html}/section.html | 1 -
.../double_contents_separate_element_nodes.pl | 793 +++++++++++++++++++++
.../res_html}/chapter.html | 5 +-
.../res_html/double_contents_toc.html} | 37 +-
.../res_html}/index.html | 26 +-
.../res_html}/section.html | 5 +-
.../double_contents_separate_element_section.pl | 793 +++++++++++++++++++++
.../res_html}/chapter.html | 11 +-
.../res_html/double_contents_toc.html} | 36 +-
.../res_html}/index.html | 27 +-
.../res_html}/section.html | 11 +-
tp/tests/contents/Makefile.am | 2 +-
tp/tests/contents/list-of-tests | 18 +-
.../res_parser/double_contents/double_contents.1 | 0
.../res_parser/double_contents/double_contents.2 | 0
.../double_contents/double_contents.html | 232 ------
.../double_contents_after_title/double_contents.1 | 0
.../double_contents_after_title/double_contents.2 | 0
.../double_contents.html | 227 ------
.../double_contents.html | 134 +---
.../double_contents_1.html | 44 +-
.../double_contents_abt.html | 122 ----
.../double_contents_top.html | 32 +-
.../double_contents.1 | 0
.../double_contents.2 | 0
.../double_contents_book/double_contents.html | 138 +---
.../double_contents_chapter/chapter.html | 93 ---
.../double_contents_chapter/double_contents.1 | 0
.../double_contents_chapter/double_contents.2 | 0
.../double_contents_abt.html | 148 ----
.../double_contents_toc.html | 57 --
.../res_parser/double_contents_chapter/index.html | 62 --
.../double_contents_info/double_contents.1 | 0
.../double_contents_info/double_contents.2 | 0
.../double_contents_info/double_contents.info | 46 --
.../double_contents_inline/double_contents.1 | 0
.../double_contents_inline/double_contents.2 | 0
.../double_contents_inline/double_contents.html | 252 -------
.../double_contents_inline_chapter/chapter.html | 120 ----
.../double_contents.1 | 0
.../double_contents.2 | 0
.../double_contents_abt.html | 148 ----
.../double_contents_inline_chapter/index.html | 76 --
.../double_contents_inline_nodes/chapter.html | 75 --
.../double_contents_inline_nodes/double_contents.1 | 0
.../double_contents_inline_nodes/double_contents.2 | 0
.../double_contents_abt.html | 149 ----
.../double_contents_inline_nodes/index.html | 77 --
.../double_contents_inline_nodes/section.html | 66 --
.../double_contents_inline_section/chapter.html | 81 ---
.../double_contents.1 | 0
.../double_contents.2 | 0
.../double_contents_abt.html | 148 ----
.../double_contents_inline_section/index.html | 76 --
.../double_contents_inline_section/section.html | 72 --
.../res_parser/double_contents_nodes/chapter.html | 61 --
.../double_contents_nodes/double_contents.1 | 0
.../double_contents_nodes/double_contents.2 | 0
.../double_contents_nodes/double_contents_abt.html | 149 ----
.../double_contents_nodes/double_contents_toc.html | 58 --
.../res_parser/double_contents_nodes/index.html | 63 --
.../res_parser/double_contents_nodes/section.html | 52 --
.../double_contents_section/chapter.html | 67 --
.../double_contents_section/double_contents.1 | 0
.../double_contents_section/double_contents.2 | 0
.../double_contents_abt.html | 148 ----
.../double_contents_toc.html | 57 --
.../res_parser/double_contents_section/index.html | 62 --
.../double_contents_section/section.html | 58 --
tp/tests/test_scripts/contents_double_contents.sh | 19 -
.../contents_double_contents_after_title.sh | 19 -
...nts_double_contents_after_title_no_texi2html.sh | 19 -
.../contents_double_contents_chapter.sh | 19 -
.../test_scripts/contents_double_contents_info.sh | 19 -
.../contents_double_contents_inline.sh | 19 -
.../contents_double_contents_inline_chapter.sh | 19 -
.../contents_double_contents_inline_nodes.sh | 19 -
.../contents_double_contents_inline_section.sh | 19 -
.../test_scripts/contents_double_contents_nodes.sh | 19 -
.../contents_double_contents_section.sh | 19 -
127 files changed, 12933 insertions(+), 3836 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2919f6da58..3cbb6f9c75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,25 +2,14 @@
* 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,
- tp/tests/contents/Makefile.am (EXTRA_DIST),
- tp/tests/contents/list-of-tests: remove contents_in_middle_chapter*
- 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,
- tp/tests/contents/Makefile.am (EXTRA_DIST),
- tp/tests/contents/list-of-tests: remove contents_at_end* tests from
- tp/tests/contents/list-of-tests, put similar tests in
- tp/t/html_tests.t and move the Texinfo file accordingly.
+ tp/tests/contents/list-of-tests: remove contents_in_middle_section*,
+ contents_in_middle_chapter*, contents_at_end* and most of tests
+ involving double_contents.texi from tp/tests/contents/list-of-tests,
+ put similar tests in tp/t/html_tests.t and move the Texinfo file
+ accordingly.
+ Tests using the book.init init file need to stay in
+ tp/tests/contents/list-of-tests, for those tests, do not use the
+ texi2html style anymore.
2023-01-03 Patrice Dumas <pertusus@free.fr>
diff --git a/tp/Makefile.am b/tp/Makefile.am
index 6a96e5aab9..b87238ffa7 100644
--- a/tp/Makefile.am
+++ b/tp/Makefile.am
@@ -197,6 +197,7 @@ test_files = \
t/input_files/cpp_line_latin1.texi \
t/input_files/delcomment.texi \
t/input_files/direntry_dircategory.texi \
+ t/input_files/double_contents.texi \
t/input_files/east_asian_in_w.texi \
t/input_files/empty.texi \
t/input_files/empty_lines_at_beginning_no_setfilename.texi \
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index f865c57d71..8e0a8bdbb4 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -610,6 +610,61 @@ test_files_generated_list =
$(test_tap_files_generated_list) \
t/results/html_tests/deftypefnnewline_for_copying_after.pl \
t/results/html_tests/deftypefnnewline_for_copying_before.pl \
t/results/html_tests/documentdescription.pl \
+ t/results/html_tests/double_contents.pl \
+ t/results/html_tests/double_contents/res_html/double_contents.html \
+ t/results/html_tests/double_contents_after_title.pl \
+
t/results/html_tests/double_contents_after_title/res_html/double_contents.html \
+ t/results/html_tests/double_contents_after_title_show_title.pl \
+
t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
\
+ t/results/html_tests/double_contents_after_title_show_title_nodes.pl \
+
t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/chapter.html
\
+
t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
\
+
t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/section.html
\
+ t/results/html_tests/double_contents_book.pl \
+ t/results/html_tests/double_contents_book/res_html/double_contents.html \
+ t/results/html_tests/double_contents_chapter.pl \
+ t/results/html_tests/double_contents_chapter/res_html/chapter.html \
+ t/results/html_tests/double_contents_chapter/res_html/index.html \
+ t/results/html_tests/double_contents_chapter/res_html/section.html \
+ t/results/html_tests/double_contents_inline.pl \
+ t/results/html_tests/double_contents_inline/res_html/double_contents.html \
+ t/results/html_tests/double_contents_inline_chapter.pl \
+ t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html \
+ t/results/html_tests/double_contents_inline_chapter/res_html/index.html \
+ t/results/html_tests/double_contents_inline_chapter/res_html/section.html \
+ t/results/html_tests/double_contents_inline_nodes.pl \
+ t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html \
+ t/results/html_tests/double_contents_inline_nodes/res_html/index.html \
+ t/results/html_tests/double_contents_inline_nodes/res_html/section.html \
+ t/results/html_tests/double_contents_inline_section.pl \
+ t/results/html_tests/double_contents_inline_section/res_html/chapter.html \
+ t/results/html_tests/double_contents_inline_section/res_html/index.html \
+ t/results/html_tests/double_contents_inline_section/res_html/section.html \
+ t/results/html_tests/double_contents_nodes.pl \
+ t/results/html_tests/double_contents_nodes/res_html/chapter.html \
+ t/results/html_tests/double_contents_nodes/res_html/index.html \
+ t/results/html_tests/double_contents_nodes/res_html/section.html \
+ t/results/html_tests/double_contents_section.pl \
+ t/results/html_tests/double_contents_section/res_html/chapter.html \
+ t/results/html_tests/double_contents_section/res_html/index.html \
+ t/results/html_tests/double_contents_section/res_html/section.html \
+ t/results/html_tests/double_contents_separate_element.pl \
+
t/results/html_tests/double_contents_separate_element/res_html/double_contents.html
\
+ t/results/html_tests/double_contents_separate_element_chapter.pl \
+
t/results/html_tests/double_contents_separate_element_chapter/res_html/chapter.html
\
+
t/results/html_tests/double_contents_separate_element_chapter/res_html/double_contents_toc.html
\
+
t/results/html_tests/double_contents_separate_element_chapter/res_html/index.html
\
+
t/results/html_tests/double_contents_separate_element_chapter/res_html/section.html
\
+ t/results/html_tests/double_contents_separate_element_nodes.pl \
+
t/results/html_tests/double_contents_separate_element_nodes/res_html/chapter.html
\
+
t/results/html_tests/double_contents_separate_element_nodes/res_html/double_contents_toc.html
\
+
t/results/html_tests/double_contents_separate_element_nodes/res_html/index.html
\
+
t/results/html_tests/double_contents_separate_element_nodes/res_html/section.html
\
+ t/results/html_tests/double_contents_separate_element_section.pl \
+
t/results/html_tests/double_contents_separate_element_section/res_html/chapter.html
\
+
t/results/html_tests/double_contents_separate_element_section/res_html/double_contents_toc.html
\
+
t/results/html_tests/double_contents_separate_element_section/res_html/index.html
\
+
t/results/html_tests/double_contents_separate_element_section/res_html/section.html
\
t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl \
t/results/html_tests/empty_lines_at_beginning_no_setfilename_no_element.pl \
t/results/html_tests/empty_titlefont.pl \
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index e0bf496ef0..e2bc0bf2b4 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -877,6 +877,89 @@ $check_htmlxref_text
{'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
],
+# actually triple contents
+['double_contents',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_inline',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'inline',
+ 'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_separate_element',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
+ 'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_chapter',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'SPLIT' => 'chapter', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_inline_chapter',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'inline',
+ 'SPLIT' => 'chapter', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_separate_element_chapter',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
+ 'SPLIT' => 'chapter', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_nodes',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'SPLIT' => 'node', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_inline_nodes',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'inline',
+ 'SPLIT' => 'node', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_separate_element_nodes',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
+ 'SPLIT' => 'node', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_section',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'SPLIT' => 'section', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_inline_section',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'inline',
+ 'SPLIT' => 'section', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_separate_element_section',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
+ 'SPLIT' => 'section', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_after_title',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'after_title',
+ 'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_after_title_show_title',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'after_title', 'SHOW_TITLE' => 1,
+ 'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+['double_contents_after_title_show_title_nodes',
+ undef, {'test_file' => 'double_contents.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'after_title', 'SHOW_TITLE' => 1,
+ 'SPLIT' => 'nodes', 'BIG_RULE' => '<hr style="height: 6px;">'}
+],
+# there is also a test in tests/ as texinfo_set_from_init_file
+# has no effect in the test suite, such that the following does not
+# really test what it should
+['double_contents_book',
+ undef, {'test_file' => 'double_contents.texi',
+ 'init_files' => ['book.pm']},
+ {'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">',
+ 'FORMAT_MENU' => 'nomenu'}
+],
+
+
);
diff --git a/tp/tests/contents/double_contents.texi
b/tp/t/input_files/double_contents.texi
similarity index 100%
rename from tp/tests/contents/double_contents.texi
rename to tp/t/input_files/double_contents.texi
diff --git a/tp/t/results/html_tests/double_contents.pl
b/tp/t/results/html_tests/double_contents.pl
new file mode 100644
index 0000000000..389c82ddb3
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents.pl
@@ -0,0 +1,793 @@
+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{'double_contents'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents'}{'contents'}[1]{'extra'}{'node_content'}[0] =
$result_trees{'double_contents'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
= $result_trees{'double_contents'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents'}{'contents'}[3]{'extra'}{'node_content'}[0] =
$result_trees{'double_contents'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
= $result_trees{'double_contents'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents'}{'contents'}[5]{'extra'}{'node_content'}[0] =
$result_trees{'double_contents'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
= $result_trees{'double_contents'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents'} = '\\input texinfo @c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
= $result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
= $result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents'};
+
+$result_nodes{'double_contents'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents'};
+$result_nodes{'double_contents'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents'};
+$result_nodes{'double_contents'}{'structure'}{'node_next'} =
$result_nodes{'double_contents'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents'}{'structure'}{'menu_child'};
+$result_menus{'double_contents'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents'};
+
+$result_errors{'double_contents'} = [];
+
+
+$result_floats{'double_contents'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/double_contents/res_html/double_contents.html
b/tp/t/results/html_tests/double_contents/res_html/double_contents.html
new file mode 100644
index 0000000000..7dc0b56121
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents/res_html/double_contents.html
@@ -0,0 +1,80 @@
+<!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>Double contents</title>
+
+<meta name="description" content="Double contents">
+<meta name="keywords" content="Double contents">
+<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> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Double-contents">Double contents</h1>
+
+<p>Double 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-with-contents" href="#section">1.1 section with
contents</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">Double contents</a>, Up: <a
href="#Top" accesskey="u" rel="up">Double contents</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+<p>The chapter
+</p>
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section with contents</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+
+</div>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/html_tests/double_contents_after_title.pl
b/tp/t/results/html_tests/double_contents_after_title.pl
new file mode 100644
index 0000000000..03547549b4
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_after_title.pl
@@ -0,0 +1,793 @@
+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{'double_contents_after_title'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_after_title'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_after_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_after_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_after_title'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_after_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_after_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_after_title'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_after_title'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_after_title'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_after_title'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_after_title'};
+
+$result_nodes{'double_contents_after_title'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_after_title'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_after_title'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_after_title'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_after_title'};
+$result_nodes{'double_contents_after_title'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_after_title'};
+$result_nodes{'double_contents_after_title'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_after_title'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_after_title'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_after_title'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_after_title'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_after_title'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_after_title'};
+
+$result_errors{'double_contents_after_title'} = [];
+
+
+$result_floats{'double_contents_after_title'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/double_contents_after_title/res_html/double_contents.html
b/tp/t/results/html_tests/double_contents_after_title/res_html/double_contents.html
new file mode 100644
index 0000000000..df212aca56
--- /dev/null
+++
b/tp/t/results/html_tests/double_contents_after_title/res_html/double_contents.html
@@ -0,0 +1,65 @@
+<!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>Double contents</title>
+
+<meta name="description" content="Double contents">
+<meta name="keywords" content="Double contents">
+<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">
+
+
+</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> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Double-contents">Double contents</h1>
+
+<p>Double contents.
+</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">Double contents</a>, Up: <a
href="#Top" accesskey="u" rel="up">Double contents</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+<p>The chapter
+</p>
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section with contents</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+
+</div>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/html_tests/double_contents_after_title_show_title.pl
b/tp/t/results/html_tests/double_contents_after_title_show_title.pl
new file mode 100644
index 0000000000..146d9960c7
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_after_title_show_title.pl
@@ -0,0 +1,793 @@
+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{'double_contents_after_title_show_title'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_after_title_show_title'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_after_title_show_title'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_after_title_show_title'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_after_title_show_title'};
+
+$result_nodes{'double_contents_after_title_show_title'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_after_title_show_title'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
=
$result_nodes{'double_contents_after_title_show_title'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_after_title_show_title'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_after_title_show_title'};
+$result_nodes{'double_contents_after_title_show_title'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_after_title_show_title'};
+$result_nodes{'double_contents_after_title_show_title'}{'structure'}{'node_next'}
=
$result_nodes{'double_contents_after_title_show_title'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_after_title_show_title'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_after_title_show_title'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
=
$result_menus{'double_contents_after_title_show_title'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_after_title_show_title'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_after_title_show_title'};
+
+$result_errors{'double_contents_after_title_show_title'} = [];
+
+
+$result_floats{'double_contents_after_title_show_title'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
b/tp/t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
new file mode 100644
index 0000000000..628c137f67
--- /dev/null
+++
b/tp/t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
@@ -0,0 +1,84 @@
+<!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>Double contents</title>
+
+<meta name="description" content="Double contents">
+<meta name="keywords" content="Double contents">
+<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="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-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
+<hr>
+
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Double-contents">Double contents</h1>
+
+<p>Double contents.
+</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">Double contents</a>, Up: <a
href="#Top" accesskey="u" rel="up">Double contents</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+<p>The chapter
+</p>
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section with contents</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+
+</div>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/double_contents_after_title_show_title_nodes.pl
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes.pl
new file mode 100644
index 0000000000..7454e5ad76
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes.pl
@@ -0,0 +1,793 @@
+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{'double_contents_after_title_show_title_nodes'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_after_title_show_title_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_after_title_show_title_nodes'} = '\\input
texinfo @c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_after_title_show_title_nodes'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_after_title_show_title_nodes'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_after_title_show_title_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_after_title_show_title_nodes'};
+
+$result_nodes{'double_contents_after_title_show_title_nodes'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
=
$result_nodes{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_after_title_show_title_nodes'};
+$result_nodes{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_after_title_show_title_nodes'};
+$result_nodes{'double_contents_after_title_show_title_nodes'}{'structure'}{'node_next'}
=
$result_nodes{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_after_title_show_title_nodes'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
=
$result_menus{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_after_title_show_title_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_after_title_show_title_nodes'};
+
+$result_errors{'double_contents_after_title_show_title_nodes'} = [];
+
+
+$result_floats{'double_contents_after_title_show_title_nodes'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/chapter.html
similarity index 96%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to
tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/chapter.html
index 3dcc2b7630..4be440d646 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/chapter.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
similarity index 97%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to
tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
index b0fe8a61f8..c258a6b395 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/section.html
similarity index 96%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
copy to
tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/section.html
index 79d625d265..f3a43db58a 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
+++
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/section.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="section (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
diff --git a/tp/t/results/html_tests/double_contents_chapter.pl
b/tp/t/results/html_tests/double_contents_chapter.pl
new file mode 100644
index 0000000000..cd0cc54ec6
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_chapter.pl
@@ -0,0 +1,793 @@
+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{'double_contents_chapter'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_chapter'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_chapter'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_chapter'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_chapter'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_chapter'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_chapter'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_chapter'} = '\\input texinfo @c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_chapter'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_chapter'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_chapter'};
+
+$result_nodes{'double_contents_chapter'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_chapter'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_chapter'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_chapter'};
+$result_nodes{'double_contents_chapter'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_chapter'};
+$result_nodes{'double_contents_chapter'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_chapter'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_chapter'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_chapter'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_chapter'};
+
+$result_errors{'double_contents_chapter'} = [];
+
+
+$result_floats{'double_contents_chapter'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_chapter/res_html/chapter.html
similarity index 63%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to tp/t/results/html_tests/double_contents_chapter/res_html/chapter.html
index 3dcc2b7630..beb58741e7 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++ b/tp/t/results/html_tests/double_contents_chapter/res_html/chapter.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
@@ -26,15 +25,28 @@
<p>
Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
<p>The chapter
</p>
<ul class="mini-toc">
-<li><a href="section.html" accesskey="1">section with contents</a></li>
+<li><a href="#section" accesskey="1">section with contents</a></li>
</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+
+</div>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_chapter/res_html/index.html
similarity index 62%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to tp/t/results/html_tests/double_contents_chapter/res_html/index.html
index b0fe8a61f8..4aad8dcf2a 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++ b/tp/t/results/html_tests/double_contents_chapter/res_html/index.html
@@ -9,12 +9,11 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
-<link href="chapter.html" rel="next" title="chapter">
+<link href="chapter.html#chapter" rel="next" title="chapter">
<style type="text/css">
<!--
ul.toc-numbered-mark {list-style: none}
@@ -25,40 +24,35 @@ ul.toc-numbered-mark {list-style: none}
</head>
<body lang="en">
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<hr>
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html#chapter" accesskey="n" rel="next">Chapter 1</a>
[<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h1 class="top" id="Double-contents">Double contents</h1>
<p>Double contents.
</p>
-<ul class="mini-toc">
-<li><a href="chapter.html" accesskey="1">Chapter 1</a></li>
+<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.html#chapter">1 Chapter 1</a>
+ <ul class="toc-numbered-mark">
+ <li><a id="toc-section-with-contents" href="chapter.html#section">1.1
section with contents</a></li>
+ </ul></li>
</ul>
</div>
+</div>
+</div>
<hr>
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html#chapter" accesskey="n" rel="next">Chapter 1</a>
[<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git a/tp/tests/contents/res_parser/double_contents_chapter/section.html
b/tp/t/results/html_tests/double_contents_chapter/res_html/section.html
similarity index 94%
copy from tp/tests/contents/res_parser/double_contents_chapter/section.html
copy to tp/t/results/html_tests/double_contents_chapter/res_html/section.html
index 896dfb38df..b3abc06a4d 100644
--- a/tp/tests/contents/res_parser/double_contents_chapter/section.html
+++ b/tp/t/results/html_tests/double_contents_chapter/res_html/section.html
@@ -10,7 +10,6 @@
<meta name="keywords" content="section (Double contents)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
-<meta name="Generator" content="texi2any">
<meta http-equiv="Refresh" content="0; url=chapter.html#section">
<meta name="viewport" content="width=device-width,initial-scale=1">
diff --git a/tp/t/results/html_tests/double_contents_inline.pl
b/tp/t/results/html_tests/double_contents_inline.pl
new file mode 100644
index 0000000000..f87610b2bb
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_inline.pl
@@ -0,0 +1,793 @@
+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{'double_contents_inline'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_inline'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_inline'} = '\\input texinfo @c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_inline'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_inline'};
+
+$result_nodes{'double_contents_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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_inline'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_inline'};
+$result_nodes{'double_contents_inline'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline'};
+$result_nodes{'double_contents_inline'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_inline'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline'};
+
+$result_errors{'double_contents_inline'} = [];
+
+
+$result_floats{'double_contents_inline'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/double_contents_inline/res_html/double_contents.html
b/tp/t/results/html_tests/double_contents_inline/res_html/double_contents.html
new file mode 100644
index 0000000000..88c099d5be
--- /dev/null
+++
b/tp/t/results/html_tests/double_contents_inline/res_html/double_contents.html
@@ -0,0 +1,109 @@
+<!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>Double contents</title>
+
+<meta name="description" content="Double contents">
+<meta name="keywords" content="Double contents">
+<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="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-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
+
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Double-contents">Double contents</h1>
+
+<p>Double contents.
+</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">Double contents</a>, Up: <a
href="#Top" accesskey="u" rel="up">Double contents</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+<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-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
+<p>The chapter
+</p>
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section with contents</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+<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-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
+
+</div>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/html_tests/double_contents_inline_chapter.pl
b/tp/t/results/html_tests/double_contents_inline_chapter.pl
new file mode 100644
index 0000000000..4e610e8399
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_inline_chapter.pl
@@ -0,0 +1,793 @@
+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{'double_contents_inline_chapter'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_inline_chapter'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_chapter'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_inline_chapter'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_inline_chapter'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_inline_chapter'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_inline_chapter'};
+
+$result_nodes{'double_contents_inline_chapter'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_inline_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline_chapter'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_inline_chapter'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_inline_chapter'};
+$result_nodes{'double_contents_inline_chapter'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline_chapter'};
+$result_nodes{'double_contents_inline_chapter'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_inline_chapter'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_inline_chapter'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_inline_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline_chapter'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_inline_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline_chapter'};
+
+$result_errors{'double_contents_inline_chapter'} = [];
+
+
+$result_floats{'double_contents_inline_chapter'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html
new file mode 100644
index 0000000000..46df2bd07a
--- /dev/null
+++
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html
@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>chapter (Double contents)</title>
+
+<meta name="description" content="chapter (Double contents)">
+<meta name="keywords" content="chapter (Double contents)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="index.html" rel="up" title="Top">
+<link href="index.html" rel="prev" title="Top">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+<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-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
+<p>The chapter
+</p>
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section with contents</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+<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-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
+
+</div>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/index.html
similarity index 64%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to
tp/t/results/html_tests/double_contents_inline_chapter/res_html/index.html
index b0fe8a61f8..e2c3d0dd57 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++ b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/index.html
@@ -9,12 +9,11 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
-<link href="chapter.html" rel="next" title="chapter">
+<link href="chapter.html#chapter" rel="next" title="chapter">
<style type="text/css">
<!--
ul.toc-numbered-mark {list-style: none}
@@ -31,34 +30,32 @@ ul.toc-numbered-mark {list-style: none}
<div class="contents">
<ul class="toc-numbered-mark">
- <li><a id="toc-Chapter-1" href="chapter.html">1 Chapter 1</a>
+ <li><a id="toc-Chapter-1" href="chapter.html#chapter">1 Chapter 1</a>
<ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
+ <li><a id="toc-section-with-contents" href="chapter.html#section">1.1
section with contents</a></li>
</ul></li>
</ul>
</div>
</div>
-<hr>
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html#chapter" accesskey="n" rel="next">Chapter 1</a>
[<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h1 class="top" id="Double-contents">Double contents</h1>
<p>Double contents.
</p>
<ul class="mini-toc">
-<li><a href="chapter.html" accesskey="1">Chapter 1</a></li>
+<li><a href="chapter.html#chapter" accesskey="1">Chapter 1</a></li>
</ul>
</div>
<hr>
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html#chapter" accesskey="n" rel="next">Chapter 1</a>
[<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_inline_chapter/section.html
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/section.html
similarity index 94%
rename from
tp/tests/contents/res_parser/double_contents_inline_chapter/section.html
rename to
tp/t/results/html_tests/double_contents_inline_chapter/res_html/section.html
index 896dfb38df..b3abc06a4d 100644
--- a/tp/tests/contents/res_parser/double_contents_inline_chapter/section.html
+++
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/section.html
@@ -10,7 +10,6 @@
<meta name="keywords" content="section (Double contents)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
-<meta name="Generator" content="texi2any">
<meta http-equiv="Refresh" content="0; url=chapter.html#section">
<meta name="viewport" content="width=device-width,initial-scale=1">
diff --git a/tp/t/results/html_tests/double_contents_inline_nodes.pl
b/tp/t/results/html_tests/double_contents_inline_nodes.pl
new file mode 100644
index 0000000000..7803365a86
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_inline_nodes.pl
@@ -0,0 +1,793 @@
+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{'double_contents_inline_nodes'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_inline_nodes'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_nodes'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_inline_nodes'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_inline_nodes'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_inline_nodes'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_inline_nodes'};
+
+$result_nodes{'double_contents_inline_nodes'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_inline_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline_nodes'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_inline_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_inline_nodes'};
+$result_nodes{'double_contents_inline_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline_nodes'};
+$result_nodes{'double_contents_inline_nodes'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_inline_nodes'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_inline_nodes'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_inline_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline_nodes'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_inline_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline_nodes'};
+
+$result_errors{'double_contents_inline_nodes'} = [];
+
+
+$result_floats{'double_contents_inline_nodes'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html
similarity index 73%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to
tp/t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html
index 3dcc2b7630..389f0b49a1 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++ b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html
@@ -9,13 +9,17 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html" rel="up" title="Top">
<link href="index.html" rel="prev" title="Top">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
</head>
@@ -29,6 +33,19 @@ Previous: <a href="index.html" accesskey="p"
rel="prev">Double contents</a>, Up:
<hr>
<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+<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-with-contents" href="section.html">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
<p>The chapter
</p>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/index.html
similarity index 97%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to tp/t/results/html_tests/double_contents_inline_nodes/res_html/index.html
index b0fe8a61f8..03202a7bf3 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++ b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/index.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
@@ -38,7 +37,6 @@ ul.toc-numbered-mark {list-style: none}
</ul>
</div>
</div>
-<hr>
<div class="top-level-extent" id="Top">
<div class="nav-panel">
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/section.html
similarity index 69%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
copy to
tp/t/results/html_tests/double_contents_inline_nodes/res_html/section.html
index 79d625d265..96cc4033d6 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
+++ b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/section.html
@@ -9,12 +9,16 @@
<meta name="keywords" content="section (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="chapter.html" rel="up" title="chapter">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
</head>
@@ -27,6 +31,19 @@ Up: <a href="chapter.html" accesskey="u" rel="up">Chapter
1</a> [<a href=
</div>
<hr>
<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+<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.html">1 Chapter 1</a>
+ <ul class="toc-numbered-mark">
+ <li><a id="toc-section-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
</div>
diff --git a/tp/t/results/html_tests/double_contents_inline_section.pl
b/tp/t/results/html_tests/double_contents_inline_section.pl
new file mode 100644
index 0000000000..8e4b36a02a
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_inline_section.pl
@@ -0,0 +1,793 @@
+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{'double_contents_inline_section'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_inline_section'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_section'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline_section'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_section'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_inline_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_inline_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_inline_section'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_inline_section'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_inline_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_inline_section'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_inline_section'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_inline_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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_inline_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_inline_section'};
+
+$result_nodes{'double_contents_inline_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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_inline_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline_section'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_inline_section'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_inline_section'};
+$result_nodes{'double_contents_inline_section'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_inline_section'};
+$result_nodes{'double_contents_inline_section'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_inline_section'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_inline_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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_inline_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline_section'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_inline_section'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_inline_section'};
+
+$result_errors{'double_contents_inline_section'} = [];
+
+
+$result_floats{'double_contents_inline_section'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_inline_section/res_html/chapter.html
similarity index 63%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to
tp/t/results/html_tests/double_contents_inline_section/res_html/chapter.html
index 3dcc2b7630..22a68de521 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++
b/tp/t/results/html_tests/double_contents_inline_section/res_html/chapter.html
@@ -9,13 +9,17 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html" rel="up" title="Top">
<link href="index.html" rel="prev" title="Top">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
</head>
@@ -26,9 +30,21 @@
<p>
Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+<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-with-contents" href="section.html">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
<p>The chapter
</p>
@@ -36,6 +52,11 @@ Previous: <a href="index.html" accesskey="p"
rel="prev">Double contents</a>, Up:
<li><a href="section.html" accesskey="1">section with contents</a></li>
</ul>
</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_inline_section/res_html/index.html
similarity index 97%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to
tp/t/results/html_tests/double_contents_inline_section/res_html/index.html
index b0fe8a61f8..ee57a4194c 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++ b/tp/t/results/html_tests/double_contents_inline_section/res_html/index.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
@@ -38,14 +37,12 @@ ul.toc-numbered-mark {list-style: none}
</ul>
</div>
</div>
-<hr>
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
-<hr>
<h1 class="top" id="Double-contents">Double contents</h1>
<p>Double contents.
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
b/tp/t/results/html_tests/double_contents_inline_section/res_html/section.html
similarity index 61%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
copy to
tp/t/results/html_tests/double_contents_inline_section/res_html/section.html
index 79d625d265..2a1630bb3f 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
+++
b/tp/t/results/html_tests/double_contents_inline_section/res_html/section.html
@@ -9,12 +9,16 @@
<meta name="keywords" content="section (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="chapter.html" rel="up" title="chapter">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
</head>
@@ -25,10 +29,27 @@
<p>
Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+<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.html">1 Chapter 1</a>
+ <ul class="toc-numbered-mark">
+ <li><a id="toc-section-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
</div>
+<hr>
+<div class="nav-panel">
+<p>
+Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
diff --git a/tp/t/results/html_tests/double_contents_nodes.pl
b/tp/t/results/html_tests/double_contents_nodes.pl
new file mode 100644
index 0000000000..2ae76119d0
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_nodes.pl
@@ -0,0 +1,793 @@
+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{'double_contents_nodes'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_nodes'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_nodes'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_nodes'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_nodes'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_nodes'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_nodes'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_nodes'} = '\\input texinfo @c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_nodes'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_nodes'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_nodes'};
+
+$result_nodes{'double_contents_nodes'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_nodes'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_nodes'};
+$result_nodes{'double_contents_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_nodes'};
+$result_nodes{'double_contents_nodes'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_nodes'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_nodes'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_nodes'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_nodes'};
+
+$result_errors{'double_contents_nodes'} = [];
+
+
+$result_floats{'double_contents_nodes'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_nodes/res_html/chapter.html
similarity index 96%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to tp/t/results/html_tests/double_contents_nodes/res_html/chapter.html
index 3dcc2b7630..4be440d646 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++ b/tp/t/results/html_tests/double_contents_nodes/res_html/chapter.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_nodes/res_html/index.html
similarity index 92%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to tp/t/results/html_tests/double_contents_nodes/res_html/index.html
index b0fe8a61f8..a3c1d18161 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++ b/tp/t/results/html_tests/double_contents_nodes/res_html/index.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
@@ -25,20 +24,6 @@ ul.toc-numbered-mark {list-style: none}
</head>
<body lang="en">
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<hr>
<div class="top-level-extent" id="Top">
<div class="nav-panel">
@@ -51,10 +36,20 @@ Next: <a href="chapter.html" accesskey="n"
rel="next">Chapter 1</a> [<a h
<p>Double contents.
</p>
-<ul class="mini-toc">
-<li><a href="chapter.html" accesskey="1">Chapter 1</a></li>
+<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.html">1 Chapter 1</a>
+ <ul class="toc-numbered-mark">
+ <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
+ </ul></li>
</ul>
</div>
+</div>
+</div>
<hr>
<div class="nav-panel">
<p>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
b/tp/t/results/html_tests/double_contents_nodes/res_html/section.html
similarity index 96%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
copy to tp/t/results/html_tests/double_contents_nodes/res_html/section.html
index 79d625d265..f3a43db58a 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
+++ b/tp/t/results/html_tests/double_contents_nodes/res_html/section.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="section (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
diff --git a/tp/t/results/html_tests/double_contents_section.pl
b/tp/t/results/html_tests/double_contents_section.pl
new file mode 100644
index 0000000000..e03bd28271
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_section.pl
@@ -0,0 +1,793 @@
+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{'double_contents_section'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_section'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_section'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_section'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_section'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_section'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_section'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_section'} = '\\input texinfo @c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_section'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_section'};
+
+$result_nodes{'double_contents_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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_section'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_section'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_section'};
+$result_nodes{'double_contents_section'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_section'};
+$result_nodes{'double_contents_section'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_section'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_section'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_section'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_section'};
+
+$result_errors{'double_contents_section'} = [];
+
+
+$result_floats{'double_contents_section'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_section/res_html/chapter.html
similarity index 81%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to tp/t/results/html_tests/double_contents_section/res_html/chapter.html
index 3dcc2b7630..61ba34f7ca 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++ b/tp/t/results/html_tests/double_contents_section/res_html/chapter.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
@@ -26,7 +25,6 @@
<p>
Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
<p>The chapter
@@ -36,6 +34,11 @@ Previous: <a href="index.html" accesskey="p"
rel="prev">Double contents</a>, Up:
<li><a href="section.html" accesskey="1">section with contents</a></li>
</ul>
</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_section/res_html/index.html
similarity index 92%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to tp/t/results/html_tests/double_contents_section/res_html/index.html
index b0fe8a61f8..970faa33b8 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++ b/tp/t/results/html_tests/double_contents_section/res_html/index.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
@@ -25,6 +24,17 @@ ul.toc-numbered-mark {list-style: none}
</head>
<body lang="en">
+
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Double-contents">Double contents</h1>
+
+<p>Double contents.
+</p>
+
<div class="element-contents" id="SEC_Contents">
<h2 class="contents-heading">Table of Contents</h2>
@@ -38,22 +48,6 @@ ul.toc-numbered-mark {list-style: none}
</ul>
</div>
</div>
-<hr>
-
-<div class="top-level-extent" id="Top">
-<div class="nav-panel">
-<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
-</div>
-<hr>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-
-<ul class="mini-toc">
-<li><a href="chapter.html" accesskey="1">Chapter 1</a></li>
-</ul>
</div>
<hr>
<div class="nav-panel">
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
b/tp/t/results/html_tests/double_contents_section/res_html/section.html
similarity index 84%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
copy to tp/t/results/html_tests/double_contents_section/res_html/section.html
index 79d625d265..54d81db77c 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
+++ b/tp/t/results/html_tests/double_contents_section/res_html/section.html
@@ -9,7 +9,6 @@
<meta name="keywords" content="section (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
@@ -25,10 +24,14 @@
<p>
Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
</div>
+<hr>
+<div class="nav-panel">
+<p>
+Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
diff --git a/tp/t/results/html_tests/double_contents_separate_element.pl
b/tp/t/results/html_tests/double_contents_separate_element.pl
new file mode 100644
index 0000000000..328fba7873
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_separate_element.pl
@@ -0,0 +1,793 @@
+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{'double_contents_separate_element'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_separate_element'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_separate_element'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_separate_element'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_separate_element'};
+
+$result_nodes{'double_contents_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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_separate_element'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_separate_element'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_separate_element'};
+$result_nodes{'double_contents_separate_element'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_separate_element'};
+$result_nodes{'double_contents_separate_element'}{'structure'}{'node_next'} =
$result_nodes{'double_contents_separate_element'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_separate_element'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_separate_element'};
+
+$result_errors{'double_contents_separate_element'} = [];
+
+
+$result_floats{'double_contents_separate_element'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/double_contents_separate_element/res_html/double_contents.html
b/tp/t/results/html_tests/double_contents_separate_element/res_html/double_contents.html
new file mode 100644
index 0000000000..fb8bb0360a
--- /dev/null
+++
b/tp/t/results/html_tests/double_contents_separate_element/res_html/double_contents.html
@@ -0,0 +1,87 @@
+<!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>Double contents</title>
+
+<meta name="description" content="Double contents">
+<meta name="keywords" content="Double contents">
+<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> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Double-contents">Double contents</h1>
+
+<p>Double contents.
+</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">Double contents</a>, Up: <a
href="#Top" accesskey="u" rel="up">Double contents</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
+
+<p>The chapter
+</p>
+
+<ul class="mini-toc">
+<li><a href="#section" accesskey="1">section with contents</a></li>
+</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+
+<hr style="height: 6px;">
+</div>
+</div>
+</div>
+<div class="element-contents" id="SEC_Contents">
+<div class="nav-panel">
+<p>
+ [<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-with-contents" href="#section">1.1 section with
contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div>
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/double_contents_separate_element_chapter.pl
b/tp/t/results/html_tests/double_contents_separate_element_chapter.pl
new file mode 100644
index 0000000000..2373e894f9
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_separate_element_chapter.pl
@@ -0,0 +1,793 @@
+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{'double_contents_separate_element_chapter'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_chapter'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_separate_element_chapter'} = '\\input texinfo
@c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_separate_element_chapter'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_separate_element_chapter'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_chapter'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_separate_element_chapter'};
+
+$result_nodes{'double_contents_separate_element_chapter'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
=
$result_nodes{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_separate_element_chapter'};
+$result_nodes{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_separate_element_chapter'};
+$result_nodes{'double_contents_separate_element_chapter'}{'structure'}{'node_next'}
=
$result_nodes{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_separate_element_chapter'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
=
$result_menus{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_separate_element_chapter'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_separate_element_chapter'};
+
+$result_errors{'double_contents_separate_element_chapter'} = [];
+
+
+$result_floats{'double_contents_separate_element_chapter'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/chapter.html
similarity index 51%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to
tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/chapter.html
index 3dcc2b7630..7f09f7d99b 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/chapter.html
@@ -9,11 +9,10 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
-<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
<link href="index.html" rel="up" title="Top">
<link href="index.html" rel="prev" title="Top">
@@ -24,17 +23,30 @@
<div class="chapter-level-extent" id="chapter">
<div class="nav-panel">
<p>
-Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
<p>The chapter
</p>
<ul class="mini-toc">
-<li><a href="section.html" accesskey="1">section with contents</a></li>
+<li><a href="#section" accesskey="1">section with contents</a></li>
</ul>
+<hr>
+<div class="section-level-extent" id="section">
+<div class="nav-panel">
+<p>
+Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
+
+</div>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git
a/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/double_contents_toc.html
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/double_contents_toc.html
new file mode 100644
index 0000000000..7bf771a406
--- /dev/null
+++
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/double_contents_toc.html
@@ -0,0 +1,51 @@
+<!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>Table of Contents (Double contents)</title>
+
+<meta name="description" content="Table of Contents (Double contents)">
+<meta name="keywords" content="Table of Contents (Double contents)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="#SEC_Contents" rel="contents" title="Table of Contents">
+<style type="text/css">
+<!--
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="element-contents" id="SEC_Contents">
+<div class="nav-panel">
+<p>
+ [<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.html#chapter">1 Chapter 1</a>
+ <ul class="toc-numbered-mark">
+ <li><a id="toc-section-with-contents" href="chapter.html#section">1.1
section with contents</a></li>
+ </ul></li>
+</ul>
+</div>
+</div><hr>
+<div class="nav-panel">
+<p>
+ [<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/index.html
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/index.html
new file mode 100644
index 0000000000..302eca5f76
--- /dev/null
+++
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/index.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Top (Double contents)</title>
+
+<meta name="description" content="Top (Double contents)">
+<meta name="keywords" content="Top (Double contents)">
+<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="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
+<link href="chapter.html#chapter" rel="next" title="chapter">
+
+
+</head>
+
+<body lang="en">
+
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="chapter.html#chapter" accesskey="n" rel="next">Chapter 1</a>
[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents" rel="contents">Contents</a>]</p>
+</div>
+<h1 class="top" id="Double-contents">Double contents</h1>
+
+<p>Double contents.
+</p>
+
+<ul class="mini-toc">
+<li><a href="chapter.html#chapter" accesskey="1">Chapter 1</a></li>
+</ul>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Next: <a href="chapter.html#chapter" accesskey="n" rel="next">Chapter 1</a>
[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents" rel="contents">Contents</a>]</p>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/tests/contents/res_parser/double_contents_chapter/section.html
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/section.html
similarity index 94%
rename from tp/tests/contents/res_parser/double_contents_chapter/section.html
rename to
tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/section.html
index 896dfb38df..b3abc06a4d 100644
--- a/tp/tests/contents/res_parser/double_contents_chapter/section.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_chapter/res_html/section.html
@@ -10,7 +10,6 @@
<meta name="keywords" content="section (Double contents)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
-<meta name="Generator" content="texi2any">
<meta http-equiv="Refresh" content="0; url=chapter.html#section">
<meta name="viewport" content="width=device-width,initial-scale=1">
diff --git a/tp/t/results/html_tests/double_contents_separate_element_nodes.pl
b/tp/t/results/html_tests/double_contents_separate_element_nodes.pl
new file mode 100644
index 0000000000..5f4f9601b0
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_separate_element_nodes.pl
@@ -0,0 +1,793 @@
+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{'double_contents_separate_element_nodes'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_nodes'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_nodes'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_separate_element_nodes'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_separate_element_nodes'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_separate_element_nodes'} = {
+ '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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_nodes'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_separate_element_nodes'};
+
+$result_nodes{'double_contents_separate_element_nodes'} = {
+ '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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
=
$result_nodes{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_separate_element_nodes'};
+$result_nodes{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_separate_element_nodes'};
+$result_nodes{'double_contents_separate_element_nodes'}{'structure'}{'node_next'}
=
$result_nodes{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_separate_element_nodes'} = {
+ '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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
=
$result_menus{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_separate_element_nodes'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_separate_element_nodes'};
+
+$result_errors{'double_contents_separate_element_nodes'} = [];
+
+
+$result_floats{'double_contents_separate_element_nodes'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/chapter.html
similarity index 81%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
copy to
tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/chapter.html
index 3dcc2b7630..f7675613ec 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/chapter.html
@@ -9,11 +9,10 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
-<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
<link href="index.html" rel="up" title="Top">
<link href="index.html" rel="prev" title="Top">
@@ -24,7 +23,7 @@
<div class="chapter-level-extent" id="chapter">
<div class="nav-panel">
<p>
-Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
<hr>
<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/double_contents_toc.html
similarity index 53%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to
tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/double_contents_toc.html
index b0fe8a61f8..5bba7600bd 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/double_contents_toc.html
@@ -3,18 +3,16 @@
<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Top (Double contents)</title>
+<title>Table of Contents (Double contents)</title>
-<meta name="description" content="Top (Double contents)">
-<meta name="keywords" content="Top (Double contents)">
+<meta name="description" content="Table of Contents (Double contents)">
+<meta name="keywords" content="Table of Contents (Double contents)">
<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">
-<link href="#Top" rel="start" title="Top">
+<link href="index.html" rel="start" title="Top">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
-<link href="chapter.html" rel="next" title="chapter">
<style type="text/css">
<!--
ul.toc-numbered-mark {list-style: none}
@@ -26,6 +24,11 @@ ul.toc-numbered-mark {list-style: none}
<body lang="en">
<div class="element-contents" id="SEC_Contents">
+<div class="nav-panel">
+<p>
+ [<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+<hr>
<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
@@ -37,28 +40,10 @@ ul.toc-numbered-mark {list-style: none}
</ul></li>
</ul>
</div>
-</div>
-<hr>
-
-<div class="top-level-extent" id="Top">
-<div class="nav-panel">
-<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
-</div>
-<hr>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-
-<ul class="mini-toc">
-<li><a href="chapter.html" accesskey="1">Chapter 1</a></li>
-</ul>
-</div>
-<hr>
+</div><hr>
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+ [<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/index.html
similarity index 57%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to
tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/index.html
index b0fe8a61f8..94d01fb0fd 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/index.html
@@ -9,41 +9,21 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
-<link href="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
<link href="chapter.html" rel="next" title="chapter">
-<style type="text/css">
-<!--
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
</head>
<body lang="en">
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<hr>
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
<hr>
<h1 class="top" id="Double-contents">Double contents</h1>
@@ -58,7 +38,7 @@ Next: <a href="chapter.html" accesskey="n" rel="next">Chapter
1</a> [<a h
<hr>
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/section.html
similarity index 79%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
copy to
tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/section.html
index 79d625d265..987e0cad30 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_nodes/res_html/section.html
@@ -9,11 +9,10 @@
<meta name="keywords" content="section (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
-<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
<link href="chapter.html" rel="up" title="chapter">
@@ -23,7 +22,7 @@
<div class="section-level-extent" id="section">
<div class="nav-panel">
<p>
-Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
<hr>
<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
diff --git
a/tp/t/results/html_tests/double_contents_separate_element_section.pl
b/tp/t/results/html_tests/double_contents_separate_element_section.pl
new file mode 100644
index 0000000000..bff1a1fd78
--- /dev/null
+++ b/tp/t/results/html_tests/double_contents_separate_element_section.pl
@@ -0,0 +1,793 @@
+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{'double_contents_separate_element_section'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'Double contents.
+'
+ }
+ ],
+ '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' => 'double_contents.texi',
+ 'line_nr' => 11,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 6,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Chapter 1'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'The chapter
+'
+ }
+ ],
+ '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' => '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' => 'double_contents.texi',
+ 'line_nr' => 21,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 22,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 20,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 15,
+ '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' => 'double_contents.texi',
+ 'line_nr' => 24,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'section with contents'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 26,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'double_contents.texi',
+ 'line_nr' => 25,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'double_contents_separate_element_section'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[3];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[4]{'contents'}[4]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'double_contents_separate_element_section'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'double_contents_separate_element_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+
+$result_texis{'double_contents_separate_element_section'} = '\\input texinfo
@c -*-texinfo-*-
+
+@contents
+
+@node Top
+@top Double contents
+
+Double contents.
+
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+
+@contents
+The chapter
+
+@menu
+* section::
+@end menu
+
+@node section
+@section section with contents
+@contents
+
+@bye
+';
+
+
+$result_texts{'double_contents_separate_element_section'} = '
+Double contents
+***************
+
+Double contents.
+
+* chapter::
+
+1 Chapter 1
+***********
+
+The chapter
+
+* section::
+
+1.1 section with contents
+=========================
+
+';
+
+$result_sectioning{'double_contents_separate_element_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' => {}
+ }
+ }
+ ],
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'double_contents_separate_element_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'double_contents_separate_element_section'};
+
+$result_nodes{'double_contents_separate_element_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_up' => {}
+ }
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ },
+ 'node_next' => {}
+ }
+};
+$result_nodes{'double_contents_separate_element_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
=
$result_nodes{'double_contents_separate_element_section'}{'structure'}{'menu_child'};
+$result_nodes{'double_contents_separate_element_section'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'double_contents_separate_element_section'};
+$result_nodes{'double_contents_separate_element_section'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'double_contents_separate_element_section'};
+$result_nodes{'double_contents_separate_element_section'}{'structure'}{'node_next'}
=
$result_nodes{'double_contents_separate_element_section'}{'structure'}{'menu_child'};
+
+$result_menus{'double_contents_separate_element_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_up' => {},
+ 'menu_up_hash' => {
+ 'chapter' => 1
+ }
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+ }
+ }
+};
+$result_menus{'double_contents_separate_element_section'}{'structure'}{'menu_child'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
=
$result_menus{'double_contents_separate_element_section'}{'structure'}{'menu_child'};
+$result_menus{'double_contents_separate_element_section'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'double_contents_separate_element_section'};
+
+$result_errors{'double_contents_separate_element_section'} = [];
+
+
+$result_floats{'double_contents_separate_element_section'} = {};
+
+
+1;
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/chapter.html
similarity index 67%
rename from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
rename to
tp/t/results/html_tests/double_contents_separate_element_section/res_html/chapter.html
index 3dcc2b7630..126dd8697c 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/chapter.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/chapter.html
@@ -9,11 +9,10 @@
<meta name="keywords" content="chapter (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
-<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
<link href="index.html" rel="up" title="Top">
<link href="index.html" rel="prev" title="Top">
@@ -24,9 +23,8 @@
<div class="chapter-level-extent" id="chapter">
<div class="nav-panel">
<p>
-Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
<p>The chapter
@@ -36,6 +34,11 @@ Previous: <a href="index.html" accesskey="p"
rel="prev">Double contents</a>, Up:
<li><a href="section.html" accesskey="1">section with contents</a></li>
</ul>
</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">Double contents</a>,
Up: <a href="index.html" accesskey="u" rel="up">Double contents</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/double_contents_toc.html
similarity index 53%
copy from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
copy to
tp/t/results/html_tests/double_contents_separate_element_section/res_html/double_contents_toc.html
index b0fe8a61f8..5c12eb84a8 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/double_contents_toc.html
@@ -3,18 +3,16 @@
<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Top (Double contents)</title>
+<title>Table of Contents (Double contents)</title>
-<meta name="description" content="Top (Double contents)">
-<meta name="keywords" content="Top (Double contents)">
+<meta name="description" content="Table of Contents (Double contents)">
+<meta name="keywords" content="Table of Contents (Double contents)">
<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">
-<link href="#Top" rel="start" title="Top">
+<link href="index.html" rel="start" title="Top">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
-<link href="chapter.html" rel="next" title="chapter">
<style type="text/css">
<!--
ul.toc-numbered-mark {list-style: none}
@@ -26,6 +24,10 @@ ul.toc-numbered-mark {list-style: none}
<body lang="en">
<div class="element-contents" id="SEC_Contents">
+<div class="nav-panel">
+<p>
+ [<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">
@@ -37,28 +39,10 @@ ul.toc-numbered-mark {list-style: none}
</ul></li>
</ul>
</div>
-</div>
-<hr>
-
-<div class="top-level-extent" id="Top">
-<div class="nav-panel">
-<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
-</div>
-<hr>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-
-<ul class="mini-toc">
-<li><a href="chapter.html" accesskey="1">Chapter 1</a></li>
-</ul>
-</div>
-<hr>
+</div><hr>
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+ [<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/index.html
similarity index 57%
rename from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
rename to
tp/t/results/html_tests/double_contents_separate_element_section/res_html/index.html
index b0fe8a61f8..cbb8449d23 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/index.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/index.html
@@ -9,43 +9,22 @@
<meta name="keywords" content="Top (Double contents)">
<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">
<link href="#Top" rel="start" title="Top">
-<link href="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
<link href="chapter.html" rel="next" title="chapter">
-<style type="text/css">
-<!--
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
</head>
<body lang="en">
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<hr>
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h1 class="top" id="Double-contents">Double contents</h1>
<p>Double contents.
@@ -58,7 +37,7 @@ Next: <a href="chapter.html" accesskey="n" rel="next">Chapter
1</a> [<a h
<hr>
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/section.html
similarity index 67%
rename from
tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
rename to
tp/t/results/html_tests/double_contents_separate_element_section/res_html/section.html
index 79d625d265..5ba1a8232e 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/section.html
+++
b/tp/t/results/html_tests/double_contents_separate_element_section/res_html/section.html
@@ -9,11 +9,10 @@
<meta name="keywords" content="section (Double contents)">
<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">
<link href="index.html" rel="start" title="Top">
-<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_toc.html#SEC_Contents" rel="contents" title="Table
of Contents">
<link href="chapter.html" rel="up" title="chapter">
@@ -23,12 +22,16 @@
<div class="section-level-extent" id="section">
<div class="nav-panel">
<p>
-Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<hr>
<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
</div>
+<hr>
+<div class="nav-panel">
+<p>
+Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> [<a
href="double_contents_toc.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
diff --git a/tp/tests/contents/Makefile.am b/tp/tests/contents/Makefile.am
index 2dbd8cf92b..cc21fbf69f 100644
--- a/tp/tests/contents/Makefile.am
+++ b/tp/tests/contents/Makefile.am
@@ -1,5 +1,5 @@
EXTRA_DIST = \
- double_contents.texi no_content.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 7034f8eafd..f739c0a0aa 100644
--- a/tp/tests/contents/list-of-tests
+++ b/tp/tests/contents/list-of-tests
@@ -1,22 +1,10 @@
-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'
-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
-double_contents_inline_nodes double_contents.texi -c 'CONTENTS_OUTPUT_LOCATION
inline' --split node
-double_contents_after_title double_contents.texi -c 'CONTENTS_OUTPUT_LOCATION
after_title'
-double_contents_after_title_no_texi2html double_contents.texi --html -c
'CONTENTS_OUTPUT_LOCATION after_title' -c 'TEXI2HTML undef' -c 'SHOW_TITLE 1'
no_content_inline no_content.texi -c 'CONTENTS_OUTPUT_LOCATION inline'
no_content_do_contents_inline no_content.texi -c 'CONTENTS_OUTPUT_LOCATION
inline' -c 'contents 1'
-double_contents_book double_contents.texi -c FORMAT_MENU=nomenu --init book.pm
-double_contents_after_title_book double_contents.texi --init book.pm -c
'CONTENTS_OUTPUT_LOCATION after_title'
-double_contents_after_title_book_chapter double_contents.texi --init book.pm
--split chapter -c 'CONTENTS_OUTPUT_LOCATION after_title'
+double_contents_book ../../t/input_files/double_contents.texi -c
TEXI2HTML=undef --html --no-split -c FORMAT_MENU=nomenu --init book.pm
+double_contents_after_title_book ../../t/input_files/double_contents.texi -c
TEXI2HTML=undef --html --no-split --init book.pm -c 'CONTENTS_OUTPUT_LOCATION
after_title'
+double_contents_after_title_book_chapter
../../t/input_files/double_contents.texi -c TEXI2HTML=undef --html --init
book.pm --split chapter -c 'CONTENTS_OUTPUT_LOCATION after_title'
contents_and_parts contents_and_parts.texi
-double_contents_info double_contents.texi --info
-
diff --git a/tp/tests/contents/res_parser/double_contents/double_contents.1
b/tp/tests/contents/res_parser/double_contents/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/tp/tests/contents/res_parser/double_contents/double_contents.2
b/tp/tests/contents/res_parser/double_contents/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/tp/tests/contents/res_parser/double_contents/double_contents.html
b/tp/tests/contents/res_parser/double_contents/double_contents.html
deleted file mode 100644
index 560b31e3b7..0000000000
--- a/tp/tests/contents/res_parser/double_contents/double_contents.html
+++ /dev/null
@@ -1,232 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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>[ < ]</td>
-<td>[<a href="#chapter" title="Next section in reading order"> > </a>]</td>
-<td> </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="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#chapter">1 Chapter
1</a></td><td> </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">
<< </a>]</td>
-<td>[<a href="#Top" title="Previous section in reading order"> < </a>]</td>
-<td>[<a href="#Top" title="Up section"> Up </a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </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>
-
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#section">1.1 section with
contents</a></td><td> </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"> << </a>]</td>
-<td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="#chapter" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </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-with-contents">1.1 section with contents</h2>
-
-<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-with-contents" href="#section">1.1 section with
contents</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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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/double_contents_after_title/double_contents.1
b/tp/tests/contents/res_parser/double_contents_after_title/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title/double_contents.2
b/tp/tests/contents/res_parser/double_contents_after_title/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title/double_contents.html
b/tp/tests/contents/res_parser/double_contents_after_title/double_contents.html
deleted file mode 100644
index f1609e6d90..0000000000
---
a/tp/tests/contents/res_parser/double_contents_after_title/double_contents.html
+++ /dev/null
@@ -1,227 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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="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-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<hr>
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="#chapter" title="Next section in reading order"> > </a>]</td>
-<td> </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="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#chapter">1 Chapter
1</a></td><td> </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">
<< </a>]</td>
-<td>[<a href="#Top" title="Previous section in reading order"> < </a>]</td>
-<td>[<a href="#Top" title="Up section"> Up </a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </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>
-
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#section">1.1 section with
contents</a></td><td> </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"> << </a>]</td>
-<td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="#chapter" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </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-with-contents">1.1 section with contents</h2>
-
-<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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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/double_contents_after_title_book/double_contents.html
b/tp/tests/contents/res_parser/double_contents_after_title_book/double_contents.html
index 447fc04c70..fc9350ea20 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_book/double_contents.html
+++
b/tp/tests/contents/res_parser/double_contents_after_title_book/double_contents.html
@@ -12,11 +12,10 @@
<meta name="Generator" content="texi2any">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<link href="#Top" rel="start" title="Double contents">
+<link href="#SEC_Contents" rel="contents" title="Table of Contents">
<style type="text/css">
<!--
-span.program-in-footer {font-size: smaller}
-td.button-direction-about {text-align:center}
-td.name-direction-about {text-align:center}
ul.toc-numbered-mark {list-style: none}
-->
</style>
@@ -26,7 +25,7 @@ ul.toc-numbered-mark {list-style: none}
<body lang="en">
<div class="element-contents" id="SEC_Contents">
-<h1 class="contents-heading">Table of Contents</h1>
+<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
@@ -40,25 +39,17 @@ ul.toc-numbered-mark {list-style: none}
</div>
<hr>
-<a class="node" id="Top"></a><table class="nav-panel" cellpadding="1"
cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="#chapter" title="Next section in reading order"> > </a>]</td>
-<td> </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>
+<a class="node" id="Top"></a><div class="nav-panel">
+<p>
+[<a href="#chapter" title="Next section in reading order" accesskey="n"
rel="next"> > </a>] [<a href="#SEC_Contents" title="Table of
contents" rel="contents">Contents</a>]</p>
+</div>
<a class="top" id="Double-contents"></a><hr>
<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#Top" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td> </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>
+<div class="nav-panel">
+<p>
+[<a href="#Top" title="Previous section in reading order" accesskey="p"
rel="prev"> < </a>][<a href="#section" title="Next section in reading order"
accesskey="n" rel="next"> > </a>] [<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="toc-numbered-mark">
<li> <a href="#section">1.1 section with contents</a> </li>
</ul>
@@ -68,106 +59,15 @@ ul.toc-numbered-mark {list-style: none}
<hr>
<div class="section-level-extent" id="section">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[ > ]</td>
-<td> </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-with-contents">1.1 section with contents</h2>
+<div class="nav-panel">
+<p>
+[<a href="#chapter" title="Previous section in reading order" accesskey="p"
rel="prev"> < </a>] [<a href="#SEC_Contents" title="Table of
contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
-<hr>
</div>
</div>
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><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"> [ < ] </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"> [ > ] </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"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_1.html
b/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_1.html
index c503f9d748..1896f0f2ba 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_1.html
+++
b/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_1.html
@@ -12,9 +12,12 @@
<meta name="Generator" content="texi2any">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<link href="double_contents_top.html" rel="start" title="Double contents">
+<link href="double_contents_top.html#SEC_Contents" rel="contents" title="Table
of Contents">
+<link href="double_contents_top.html" rel="up" title="Double contents">
+<link href="double_contents_top.html" rel="prev" title="Double contents">
<style type="text/css">
<!--
-span.program-in-footer {font-size: smaller}
ul.toc-numbered-mark {list-style: none}
-->
</style>
@@ -26,15 +29,11 @@ ul.toc-numbered-mark {list-style: none}
<div class="chapter-level-extent" id="chapter">
<ul class="toc-numbered-mark"><li><a href="double_contents_top.html">Double
contents</a> </li>
</ul>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="double_contents_top.html" title="Previous section in reading
order"> < </a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td> </td>
-<td>[<a href="double_contents_top.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="chapter" id="Chapter-1">1 Chapter 1</h1>
+<div class="nav-panel">
+<p>
+[<a href="double_contents_top.html" title="Previous section in reading order"
accesskey="p" rel="prev"> < </a>][<a href="#section" title="Next section in
reading order" accesskey="n" rel="next"> > </a>] [<a
href="double_contents_top.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
<ul class="toc-numbered-mark">
<li> <a href="#section">1.1 section with contents</a> </li>
</ul>
@@ -44,27 +43,20 @@ ul.toc-numbered-mark {list-style: none}
<hr>
<div class="section-level-extent" id="section">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[ > ]</td>
-<td> </td>
-<td>[<a href="double_contents_top.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h2 class="section" id="section-with-contents">1.1 section with contents</h2>
+<div class="nav-panel">
+<p>
+[<a href="#chapter" title="Previous section in reading order" accesskey="p"
rel="prev"> < </a>] [<a href="double_contents_top.html#SEC_Contents"
title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
</div>
</div>
<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="double_contents_top.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
+<div class="nav-panel">
<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>
+[<a href="double_contents_top.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
+</div>
+
</body>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_abt.html
b/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_abt.html
deleted file mode 100644
index df87faa9e7..0000000000
---
a/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_abt.html
+++ /dev/null
@@ -1,122 +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>About This Document (Double contents)</title>
-
-<meta name="description" content="About This Document (Double contents)">
-<meta name="keywords" content="About This Document (Double contents)">
-<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.name-direction-about {text-align:center}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="double_contents_top.html#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"> [ < ] </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"> [ > ] </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"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="double_contents_top.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<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/double_contents_after_title_book_chapter/double_contents_top.html
b/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_top.html
index 99e11e5d38..b0d06c0683 100644
---
a/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_top.html
+++
b/tp/tests/contents/res_parser/double_contents_after_title_book_chapter/double_contents_top.html
@@ -12,9 +12,11 @@
<meta name="Generator" content="texi2any">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<link href="#Top" rel="start" title="Double contents">
+<link href="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="double_contents_1.html#chapter" rel="next" title="1 Chapter 1">
<style type="text/css">
<!--
-span.program-in-footer {font-size: smaller}
ul.toc-numbered-mark {list-style: none}
-->
</style>
@@ -24,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
<body lang="en">
<div class="element-contents" id="SEC_Contents">
-<h1 class="contents-heading">Table of Contents</h1>
+<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
@@ -38,26 +40,16 @@ ul.toc-numbered-mark {list-style: none}
</div>
<hr>
-<a class="node" id="Top"></a><table class="nav-panel" cellpadding="1"
cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="double_contents_1.html#chapter" title="Next section in reading
order"> > </a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
+<a class="node" id="Top"></a><div class="nav-panel">
+<p>
+[<a href="double_contents_1.html#chapter" title="Next section in reading
order" accesskey="n" rel="next"> > </a>] [<a href="#SEC_Contents"
title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
<a class="top" id="Double-contents"></a><hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="double_contents_1.html#chapter" title="Next section in reading
order"> > </a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
+<div class="nav-panel">
<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>
+[<a href="double_contents_1.html#chapter" title="Next section in reading
order" accesskey="n" rel="next"> > </a>] [<a href="#SEC_Contents"
title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+
</body>
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/double_contents.1
b/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/double_contents.2
b/tp/tests/contents/res_parser/double_contents_after_title_no_texi2html/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_book/double_contents.html
b/tp/tests/contents/res_parser/double_contents_book/double_contents.html
index 68214f8bce..f663b1cc85 100644
--- a/tp/tests/contents/res_parser/double_contents_book/double_contents.html
+++ b/tp/tests/contents/res_parser/double_contents_book/double_contents.html
@@ -12,11 +12,10 @@
<meta name="Generator" content="texi2any">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<link href="#Top" rel="start" title="Double contents">
+<link href="#SEC_Contents" rel="contents" title="Table of Contents">
<style type="text/css">
<!--
-span.program-in-footer {font-size: smaller}
-td.button-direction-about {text-align:center}
-td.name-direction-about {text-align:center}
ul.toc-numbered-mark {list-style: none}
-->
</style>
@@ -26,7 +25,7 @@ ul.toc-numbered-mark {list-style: none}
<body lang="en">
<div class="element-contents" id="SEC_Contents">
-<h1 class="contents-heading">Table of Contents</h1>
+<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
@@ -39,31 +38,23 @@ ul.toc-numbered-mark {list-style: none}
</div>
</div>
-<a class="node" id="Top"></a><table class="nav-panel" cellpadding="1"
cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="#chapter" title="Next section in reading order"> > </a>]</td>
-<td> </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>
+<a class="node" id="Top"></a><div class="nav-panel">
+<p>
+[<a href="#chapter" title="Next section in reading order" accesskey="n"
rel="next"> > </a>] [<a href="#SEC_Contents" title="Table of
contents" rel="contents">Contents</a>]</p>
+</div>
<a class="top" id="Double-contents"></a><hr>
<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#Top" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td> </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>
+<div class="nav-panel">
+<p>
+[<a href="#Top" title="Previous section in reading order" accesskey="p"
rel="prev"> < </a>][<a href="#section" title="Next section in reading order"
accesskey="n" rel="next"> > </a>] [<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="toc-numbered-mark">
<li> <a href="#section">1.1 section with contents</a> </li>
</ul>
<div class="element-contents" id="SEC_Contents">
-<h1 class="contents-heading">Table of Contents</h1>
+<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
@@ -80,17 +71,13 @@ ul.toc-numbered-mark {list-style: none}
<hr>
<div class="section-level-extent" id="section">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[ > ]</td>
-<td> </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-with-contents">1.1 section with contents</h2>
+<div class="nav-panel">
+<p>
+[<a href="#chapter" title="Previous section in reading order" accesskey="p"
rel="prev"> < </a>] [<a href="#SEC_Contents" title="Table of
contents" rel="contents">Contents</a>]</p>
+</div>
+<h3 class="section" id="section-with-contents">1.1 section with contents</h3>
<div class="element-contents" id="SEC_Contents">
-<h1 class="contents-heading">Table of Contents</h1>
+<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
@@ -103,96 +90,9 @@ ul.toc-numbered-mark {list-style: none}
</div>
</div>
-<hr>
</div>
</div>
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><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"> [ < ] </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"> [ > ] </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"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
diff --git a/tp/tests/contents/res_parser/double_contents_chapter/chapter.html
b/tp/tests/contents/res_parser/double_contents_chapter/chapter.html
deleted file mode 100644
index 2029330ebf..0000000000
--- a/tp/tests/contents/res_parser/double_contents_chapter/chapter.html
+++ /dev/null
@@ -1,93 +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>1 Chapter 1 (Double contents)</title>
-
-<meta name="description" content="1 Chapter 1 (Double contents)">
-<meta name="keywords" content="1 Chapter 1 (Double contents)">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="chapter" id="Chapter-1">1 Chapter 1</h1>
-
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#section">1.1 section with
contents</a></td><td> </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"> << </a>]</td>
-<td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="#chapter" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h2 class="section" id="section-with-contents">1.1 section with contents</h2>
-
-</div>
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#chapter" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_chapter/double_contents.1
b/tp/tests/contents/res_parser/double_contents_chapter/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_chapter/double_contents.2
b/tp/tests/contents/res_parser/double_contents_chapter/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_chapter/double_contents_abt.html
b/tp/tests/contents/res_parser/double_contents_chapter/double_contents_abt.html
deleted file mode 100644
index 75056eb774..0000000000
---
a/tp/tests/contents/res_parser/double_contents_chapter/double_contents_abt.html
+++ /dev/null
@@ -1,148 +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>About This Document (Double contents)</title>
-
-<meta name="description" content="About This Document (Double contents)">
-<meta name="keywords" content="About This Document (Double contents)">
-<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.name-direction-about {text-align:center}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<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/double_contents_chapter/double_contents_toc.html
b/tp/tests/contents/res_parser/double_contents_chapter/double_contents_toc.html
deleted file mode 100644
index 4672458ac6..0000000000
---
a/tp/tests/contents/res_parser/double_contents_chapter/double_contents_toc.html
+++ /dev/null
@@ -1,57 +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>Table of Contents (Double contents)</title>
-
-<meta name="description" content="Table of Contents (Double contents)">
-<meta name="keywords" content="Table of Contents (Double contents)">
-<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}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-contents" id="SEC_Contents">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" 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="double_contents_abt.html#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.html#chapter">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="chapter.html#section">1.1
section with contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div><hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" 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="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_chapter/index.html
b/tp/tests/contents/res_parser/double_contents_chapter/index.html
deleted file mode 100644
index 8f1b580768..0000000000
--- a/tp/tests/contents/res_parser/double_contents_chapter/index.html
+++ /dev/null
@@ -1,62 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html#chapter" title="Next section in reading order">
> </a>]</td>
-<td> </td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="chapter.html#chapter">1
Chapter 1</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html#chapter" title="Next section in reading order">
> </a>]</td>
-<td> </td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_info/double_contents.1
b/tp/tests/contents/res_parser/double_contents_info/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_info/double_contents.2
b/tp/tests/contents/res_parser/double_contents_info/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_info/double_contents.info
b/tp/tests/contents/res_parser/double_contents_info/double_contents.info
deleted file mode 100644
index cbf23e078f..0000000000
--- a/tp/tests/contents/res_parser/double_contents_info/double_contents.info
+++ /dev/null
@@ -1,46 +0,0 @@
-This is double_contents.info, produced by texi2any version from
-double_contents.texi.
-
-
-File: double_contents.info, Node: Top, Next: chapter, Up: (dir)
-
-Double contents
-***************
-
-Double contents.
-
-* Menu:
-
-* chapter::
-
-
-File: double_contents.info, Node: chapter, Prev: Top, Up: Top
-
-1 Chapter 1
-***********
-
-The chapter
-
-* Menu:
-
-* section::
-
-
-File: double_contents.info, Node: section, Up: chapter
-
-1.1 section with contents
-=========================
-
-
-
-Tag Table:
-Node: Top87
-Node: chapter230
-Node: section358
-
-End Tag Table
-
-
-Local Variables:
-coding: utf-8
-End:
diff --git
a/tp/tests/contents/res_parser/double_contents_inline/double_contents.1
b/tp/tests/contents/res_parser/double_contents_inline/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline/double_contents.2
b/tp/tests/contents/res_parser/double_contents_inline/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline/double_contents.html
b/tp/tests/contents/res_parser/double_contents_inline/double_contents.html
deleted file mode 100644
index 99e6fd7cc7..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline/double_contents.html
+++ /dev/null
@@ -1,252 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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="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-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="#chapter" title="Next section in reading order"> > </a>]</td>
-<td> </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="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#chapter">1 Chapter
1</a></td><td> </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">
<< </a>]</td>
-<td>[<a href="#Top" title="Previous section in reading order"> < </a>]</td>
-<td>[<a href="#Top" title="Up section"> Up </a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </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>
-
-<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-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#section">1.1 section with
contents</a></td><td> </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"> << </a>]</td>
-<td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="#chapter" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </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-with-contents">1.1 section with contents</h2>
-<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-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-<hr style="height: 6px;">
-</div>
-</div>
-</div>
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<h1 class="about-heading">About This Document</h1>
-
-<p>
- This document was generated on <em class="emph">a sunny day</em> 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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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/double_contents_inline_chapter/chapter.html
b/tp/tests/contents/res_parser/double_contents_inline_chapter/chapter.html
deleted file mode 100644
index 1d8f4e8645..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_chapter/chapter.html
+++ /dev/null
@@ -1,120 +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>1 Chapter 1 (Double contents)</title>
-
-<meta name="description" content="1 Chapter 1 (Double contents)">
-<meta name="keywords" content="1 Chapter 1 (Double contents)">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="#section" title="Next section in reading order"> > </a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="chapter" id="Chapter-1">1 Chapter 1</h1>
-
-<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-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="#section">1.1 section with
contents</a></td><td> </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"> << </a>]</td>
-<td>[<a href="#chapter" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="#chapter" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h2 class="section" id="section-with-contents">1.1 section with contents</h2>
-<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-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-</div>
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#chapter" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_inline_chapter/double_contents.1
b/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents.2
b/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents_abt.html
b/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents_abt.html
deleted file mode 100644
index 5ad16a9d88..0000000000
---
a/tp/tests/contents/res_parser/double_contents_inline_chapter/double_contents_abt.html
+++ /dev/null
@@ -1,148 +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>About This Document (Double contents)</title>
-
-<meta name="description" content="About This Document (Double contents)">
-<meta name="keywords" content="About This Document (Double contents)">
-<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.name-direction-about {text-align:center}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<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/double_contents_inline_chapter/index.html
b/tp/tests/contents/res_parser/double_contents_inline_chapter/index.html
deleted file mode 100644
index be75edc075..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_chapter/index.html
+++ /dev/null
@@ -1,76 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<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.html#chapter">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="chapter.html#section">1.1
section with contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html#chapter" title="Next section in reading order">
> </a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="chapter.html#chapter">1
Chapter 1</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html#chapter" title="Next section in reading order">
> </a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_inline_nodes/chapter.html
b/tp/tests/contents/res_parser/double_contents_inline_nodes/chapter.html
deleted file mode 100644
index c3df49641e..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_nodes/chapter.html
+++ /dev/null
@@ -1,75 +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>1 Chapter 1 (Double contents)</title>
-
-<meta name="description" content="1 Chapter 1 (Double contents)">
-<meta name="keywords" content="1 Chapter 1 (Double contents)">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="section.html" title="Next section in reading order"> >
</a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<hr>
-<h1 class="chapter" id="Chapter-1">1 Chapter 1</h1>
-
-<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-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="section.html">1.1 section with
contents</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</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/double_contents_inline_nodes/double_contents.1
b/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents.2
b/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents_abt.html
b/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents_abt.html
deleted file mode 100644
index 37bd084d6d..0000000000
---
a/tp/tests/contents/res_parser/double_contents_inline_nodes/double_contents_abt.html
+++ /dev/null
@@ -1,149 +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>About This Document (Double contents)</title>
-
-<meta name="description" content="About This Document (Double contents)">
-<meta name="keywords" content="About This Document (Double contents)">
-<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.name-direction-about {text-align:center}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<hr>
-<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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<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/double_contents_inline_nodes/index.html
b/tp/tests/contents/res_parser/double_contents_inline_nodes/index.html
deleted file mode 100644
index 8854dd3787..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_nodes/index.html
+++ /dev/null
@@ -1,77 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<hr>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="chapter.html">1 Chapter
1</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_inline_nodes/section.html
b/tp/tests/contents/res_parser/double_contents_inline_nodes/section.html
deleted file mode 100644
index 23c00fd754..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_nodes/section.html
+++ /dev/null
@@ -1,66 +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>1.1 section with contents (Double contents)</title>
-
-<meta name="description" content="1.1 section with contents (Double contents)">
-<meta name="keywords" content="1.1 section with contents (Double contents)">
-<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}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="section-level-extent" id="section">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="chapter.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="chapter.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="chapter.html" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<hr>
-<h2 class="section" id="section-with-contents">1.1 section with contents</h2>
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-</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/double_contents_inline_section/chapter.html
b/tp/tests/contents/res_parser/double_contents_inline_section/chapter.html
deleted file mode 100644
index 9dbc533bac..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_section/chapter.html
+++ /dev/null
@@ -1,81 +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>1 Chapter 1 (Double contents)</title>
-
-<meta name="description" content="1 Chapter 1 (Double contents)">
-<meta name="keywords" content="1 Chapter 1 (Double contents)">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="section.html" title="Next section in reading order"> >
</a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="chapter" id="Chapter-1">1 Chapter 1</h1>
-
-<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-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="section.html">1.1 section with
contents</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="section.html" title="Next section in reading order"> >
</a>]</td>
-<td>[ >> ]</td>
-</tr></table>
-<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/double_contents_inline_section/double_contents.1
b/tp/tests/contents/res_parser/double_contents_inline_section/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline_section/double_contents.2
b/tp/tests/contents/res_parser/double_contents_inline_section/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_inline_section/double_contents_abt.html
b/tp/tests/contents/res_parser/double_contents_inline_section/double_contents_abt.html
deleted file mode 100644
index 5ad16a9d88..0000000000
---
a/tp/tests/contents/res_parser/double_contents_inline_section/double_contents_abt.html
+++ /dev/null
@@ -1,148 +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>About This Document (Double contents)</title>
-
-<meta name="description" content="About This Document (Double contents)">
-<meta name="keywords" content="About This Document (Double contents)">
-<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.name-direction-about {text-align:center}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<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/double_contents_inline_section/index.html
b/tp/tests/contents/res_parser/double_contents_inline_section/index.html
deleted file mode 100644
index 42a55197ff..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_section/index.html
+++ /dev/null
@@ -1,76 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="chapter.html">1 Chapter
1</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_inline_section/section.html
b/tp/tests/contents/res_parser/double_contents_inline_section/section.html
deleted file mode 100644
index 066a367cdc..0000000000
--- a/tp/tests/contents/res_parser/double_contents_inline_section/section.html
+++ /dev/null
@@ -1,72 +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>1.1 section with contents (Double contents)</title>
-
-<meta name="description" content="1.1 section with contents (Double contents)">
-<meta name="keywords" content="1.1 section with contents (Double contents)">
-<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}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="section-level-extent" id="section">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="chapter.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="chapter.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="chapter.html" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="index.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h2 class="section" id="section-with-contents">1.1 section with contents</h2>
-<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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="#section">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="chapter.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="chapter.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="chapter.html" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-</tr></table>
-<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/double_contents_nodes/chapter.html
b/tp/tests/contents/res_parser/double_contents_nodes/chapter.html
deleted file mode 100644
index a3842a691a..0000000000
--- a/tp/tests/contents/res_parser/double_contents_nodes/chapter.html
+++ /dev/null
@@ -1,61 +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>1 Chapter 1 (Double contents)</title>
-
-<meta name="description" content="1 Chapter 1 (Double contents)">
-<meta name="keywords" content="1 Chapter 1 (Double contents)">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="section.html" title="Next section in reading order"> >
</a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<hr>
-<h1 class="chapter" id="Chapter-1">1 Chapter 1</h1>
-
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="section.html">1.1 section with
contents</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</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/double_contents_nodes/double_contents.1
b/tp/tests/contents/res_parser/double_contents_nodes/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_nodes/double_contents.2
b/tp/tests/contents/res_parser/double_contents_nodes/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_nodes/double_contents_abt.html
b/tp/tests/contents/res_parser/double_contents_nodes/double_contents_abt.html
deleted file mode 100644
index 982fc5ac61..0000000000
---
a/tp/tests/contents/res_parser/double_contents_nodes/double_contents_abt.html
+++ /dev/null
@@ -1,149 +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>About This Document (Double contents)</title>
-
-<meta name="description" content="About This Document (Double contents)">
-<meta name="keywords" content="About This Document (Double contents)">
-<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.name-direction-about {text-align:center}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<hr>
-<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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<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/double_contents_nodes/double_contents_toc.html
b/tp/tests/contents/res_parser/double_contents_nodes/double_contents_toc.html
deleted file mode 100644
index a9b6800892..0000000000
---
a/tp/tests/contents/res_parser/double_contents_nodes/double_contents_toc.html
+++ /dev/null
@@ -1,58 +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>Table of Contents (Double contents)</title>
-
-<meta name="description" content="Table of Contents (Double contents)">
-<meta name="keywords" content="Table of Contents (Double contents)">
-<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}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-contents" id="SEC_Contents">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" 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="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<hr>
-<h1 class="contents-heading">Table of Contents</h1>
-
-<div class="contents">
-
-<ul class="toc-numbered-mark">
- <li><a id="toc-Chapter-1" href="chapter.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div><hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" 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="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_nodes/index.html
b/tp/tests/contents/res_parser/double_contents_nodes/index.html
deleted file mode 100644
index 2e60e9c6d1..0000000000
--- a/tp/tests/contents/res_parser/double_contents_nodes/index.html
+++ /dev/null
@@ -1,63 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<hr>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="chapter.html">1 Chapter
1</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_nodes/section.html
b/tp/tests/contents/res_parser/double_contents_nodes/section.html
deleted file mode 100644
index 138d10cce3..0000000000
--- a/tp/tests/contents/res_parser/double_contents_nodes/section.html
+++ /dev/null
@@ -1,52 +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>1.1 section with contents (Double contents)</title>
-
-<meta name="description" content="1.1 section with contents (Double contents)">
-<meta name="keywords" content="1.1 section with contents (Double contents)">
-<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}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="section-level-extent" id="section">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="chapter.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="chapter.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="chapter.html" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<hr>
-<h2 class="section" id="section-with-contents">1.1 section with contents</h2>
-
-</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/double_contents_section/chapter.html
b/tp/tests/contents/res_parser/double_contents_section/chapter.html
deleted file mode 100644
index 7349a97192..0000000000
--- a/tp/tests/contents/res_parser/double_contents_section/chapter.html
+++ /dev/null
@@ -1,67 +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>1 Chapter 1 (Double contents)</title>
-
-<meta name="description" content="1 Chapter 1 (Double contents)">
-<meta name="keywords" content="1 Chapter 1 (Double contents)">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="chapter-level-extent" id="chapter">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="section.html" title="Next section in reading order"> >
</a>]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="chapter" id="Chapter-1">1 Chapter 1</h1>
-
-<p>The chapter
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="section.html">1.1 section with
contents</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="index.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="index.html" title="Up section"> Up </a>]</td>
-<td>[<a href="section.html" title="Next section in reading order"> >
</a>]</td>
-<td>[ >> ]</td>
-</tr></table>
-<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/double_contents_section/double_contents.1
b/tp/tests/contents/res_parser/double_contents_section/double_contents.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_section/double_contents.2
b/tp/tests/contents/res_parser/double_contents_section/double_contents.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/double_contents_section/double_contents_abt.html
b/tp/tests/contents/res_parser/double_contents_section/double_contents_abt.html
deleted file mode 100644
index 75056eb774..0000000000
---
a/tp/tests/contents/res_parser/double_contents_section/double_contents_abt.html
+++ /dev/null
@@ -1,148 +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>About This Document (Double contents)</title>
-
-<meta name="description" content="About This Document (Double contents)">
-<meta name="keywords" content="About This Document (Double contents)">
-<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.name-direction-about {text-align:center}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#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"> [ << ] </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"> [ < ] </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"> [ > ] </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"> [ >> ] </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> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Contents] </td>
- <td class="name-direction-about">Contents</td>
- <td>Table of contents</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [Index] </td>
- <td class="name-direction-about">Index</td>
- <td>Index</td>
- <td> </td>
- </tr>
- <tr>
- <td class="button-direction-about"> [ ? ] </td>
- <td class="name-direction-about">About</td>
- <td>About (help)</td>
- <td> </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
- <strong><== 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>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
-</tr></table>
-<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/double_contents_section/double_contents_toc.html
b/tp/tests/contents/res_parser/double_contents_section/double_contents_toc.html
deleted file mode 100644
index eee29caac4..0000000000
---
a/tp/tests/contents/res_parser/double_contents_section/double_contents_toc.html
+++ /dev/null
@@ -1,57 +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>Table of Contents (Double contents)</title>
-
-<meta name="description" content="Table of Contents (Double contents)">
-<meta name="keywords" content="Table of Contents (Double contents)">
-<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}
-ul.toc-numbered-mark {list-style: none}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="element-contents" id="SEC_Contents">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" 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="double_contents_abt.html#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.html">1 Chapter 1</a>
- <ul class="toc-numbered-mark">
- <li><a id="toc-section-with-contents" href="section.html">1.1 section with
contents</a></li>
- </ul></li>
-</ul>
-</div>
-</div><hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="index.html" 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="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_section/index.html
b/tp/tests/contents/res_parser/double_contents_section/index.html
deleted file mode 100644
index 7fca257ccd..0000000000
--- a/tp/tests/contents/res_parser/double_contents_section/index.html
+++ /dev/null
@@ -1,62 +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>Double contents</title>
-
-<meta name="description" content="Double contents">
-<meta name="keywords" content="Double contents">
-<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.menu-entry-description {vertical-align: top}
-td.menu-entry-destination {vertical-align: top}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-
-<div class="top-level-extent" id="Top">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h1 class="top" id="Double-contents">Double contents</h1>
-
-<p>Double contents.
-</p>
-<table class="menu" border="0" cellspacing="0">
-<tr><td class="menu-entry-destination"><a href="chapter.html">1 Chapter
1</a></td><td> </td><td class="menu-entry-description">
-</td></tr>
-</table>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[ < ]</td>
-<td>[<a href="chapter.html" title="Next section in reading order"> >
</a>]</td>
-<td> </td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<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/double_contents_section/section.html
b/tp/tests/contents/res_parser/double_contents_section/section.html
deleted file mode 100644
index bb6293f37e..0000000000
--- a/tp/tests/contents/res_parser/double_contents_section/section.html
+++ /dev/null
@@ -1,58 +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>1.1 section with contents (Double contents)</title>
-
-<meta name="description" content="1.1 section with contents (Double contents)">
-<meta name="keywords" content="1.1 section with contents (Double contents)">
-<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}
--->
-</style>
-
-
-</head>
-
-<body lang="en">
-<div class="section-level-extent" id="section">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="chapter.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="chapter.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="chapter.html" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td> </td>
-<td>[<a href="index.html" title="Cover (top) of document">Top</a>]</td>
-<td>[<a href="double_contents_toc.html#SEC_Contents" title="Table of
contents">Contents</a>]</td>
-<td>[Index]</td>
-<td>[<a href="double_contents_abt.html#SEC_About" title="About (help)"> ?
</a>]</td>
-</tr></table>
-<h2 class="section" id="section-with-contents">1.1 section with contents</h2>
-
-</div>
-<hr>
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="chapter.html" title="Beginning of this chapter or previous
chapter"> << </a>]</td>
-<td>[<a href="chapter.html" title="Previous section in reading order"> <
</a>]</td>
-<td>[<a href="chapter.html" title="Up section"> Up </a>]</td>
-<td>[ > ]</td>
-<td>[ >> ]</td>
-</tr></table>
-<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_double_contents.sh
b/tp/tests/test_scripts/contents_double_contents.sh
deleted file mode 100755
index 71c048ba4f..0000000000
--- a/tp/tests/test_scripts/contents_double_contents.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='double_contents'
-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_double_contents_after_title.sh
b/tp/tests/test_scripts/contents_double_contents_after_title.sh
deleted file mode 100755
index 59d0c44fe1..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_after_title.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='double_contents_after_title'
-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_double_contents_after_title_no_texi2html.sh
b/tp/tests/test_scripts/contents_double_contents_after_title_no_texi2html.sh
deleted file mode 100755
index 346ecb5762..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_after_title_no_texi2html.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='double_contents_after_title_no_texi2html'
-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_double_contents_chapter.sh
b/tp/tests/test_scripts/contents_double_contents_chapter.sh
deleted file mode 100755
index 974c6a8bcb..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_chapter.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='double_contents_chapter'
-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_double_contents_info.sh
b/tp/tests/test_scripts/contents_double_contents_info.sh
deleted file mode 100755
index c132e2a7ae..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_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='double_contents_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_double_contents_inline.sh
b/tp/tests/test_scripts/contents_double_contents_inline.sh
deleted file mode 100755
index 033a64ce82..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_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='double_contents_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
-
diff --git a/tp/tests/test_scripts/contents_double_contents_inline_chapter.sh
b/tp/tests/test_scripts/contents_double_contents_inline_chapter.sh
deleted file mode 100755
index 24ec7b7393..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_inline_chapter.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='double_contents_inline_chapter'
-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_double_contents_inline_nodes.sh
b/tp/tests/test_scripts/contents_double_contents_inline_nodes.sh
deleted file mode 100755
index 127bf05810..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_inline_nodes.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='double_contents_inline_nodes'
-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_double_contents_inline_section.sh
b/tp/tests/test_scripts/contents_double_contents_inline_section.sh
deleted file mode 100755
index c10a9c4250..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_inline_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='double_contents_inline_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_double_contents_nodes.sh
b/tp/tests/test_scripts/contents_double_contents_nodes.sh
deleted file mode 100755
index 0d7b72fe7a..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_nodes.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='double_contents_nodes'
-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_double_contents_section.sh
b/tp/tests/test_scripts/contents_double_contents_section.sh
deleted file mode 100755
index e8739f878b..0000000000
--- a/tp/tests/test_scripts/contents_double_contents_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='double_contents_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
-
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 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*, contents_in_middle_chapter*, contents_at_end* and most of tests involving double_contents.texi from tp/tests/contents/list-of-tests, put similar tests in tp/t/html_tests.t and move the Texinfo file accordingly. Tests using the book.init init file need to stay in tp/tests/contents/list-of-tests, for those tests, [...],
Patrice Dumas <=
- Prev by Date:
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.
- Next by Date:
branch master updated: Add missing test results
- Previous by thread:
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.
- Next by thread:
branch master updated: Add missing test results
- Index(es):