[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/HTML.pm (output, _html_set_p
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/HTML.pm (output, _html_set_pages_files): set element units next and prev in output and not in _html_set_pages_files, in order to do it even if th efile is not set. |
Date: |
Tue, 03 Jan 2023 17:07:01 -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 e40ce6fffb * tp/Texinfo/Convert/HTML.pm (output,
_html_set_pages_files): set element units next and prev in output and not in
_html_set_pages_files, in order to do it even if th efile is not set.
e40ce6fffb is described below
commit e40ce6fffba554304361b26c9464d84e486ace87
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Jan 3 23:06:48 2023 +0100
* tp/Texinfo/Convert/HTML.pm (output, _html_set_pages_files): set
element units next and prev in output and not in
_html_set_pages_files, in order to do it even if th efile is not set.
* tp/t/40moresectioning.t, tp/Makefile.tres, tp/t/converters_tests.t,
tp/tests/contents/list-of-tests: inline contents_at_document_begin.texi
test in tp/t/40moresectioning.t. Replace
contents_at_document_begin.texi contents with the
tests/contents/contents_at_begin.texi file contents, without
@setfilenale. Add contents_at_document_begin,
contents_at_document_begin_inline and
contents_at_document_begin_separate_element tests in
tp/t/converters_tests.t and remove the contents_at_begin,
contents_at_begin_inline and contents_at_begin_info tests from
tp/tests/contents/list-of-tests, since the tests in
tp/t/converters_tests.t now test for much more.
---
ChangeLog | 19 +
tp/Makefile.tres | 8 +-
tp/Texinfo/Convert/HTML.pm | 16 +-
tp/t/40moresectioning.t | 10 +-
tp/t/converters_tests.t | 30 +-
tp/t/input_files/contents_at_document_begin.texi | 14 +-
.../contents_at_document_begin.pl} | 446 ++++++++++----------
.../res_html/contents_at_document_begin.html | 64 +++
.../contents_at_document_begin_inline.pl} | 447 +++++++++++----------
.../res_html/contents_at_document_begin.html | 67 +++
...contents_at_document_begin_separate_element.pl} | 445 ++++++++++----------
.../res_html/contents_at_document_begin.html | 71 ++++
.../two_footnotes_in_nodes_separate.pl | 1 +
.../moresectioning/anchor_in_footnote_separate.pl | 3 +-
...l => contents_at_begin_chapter_without_node.pl} | 113 ++----
.../moresectioning/more_sections_than_nodes.pl | 2 +-
tp/tests/contents/contents_at_begin.texi | 21 -
tp/tests/contents/list-of-tests | 3 -
.../contents_at_begin/contents_at_begin.1 | 0
.../contents_at_begin/contents_at_begin.2 | 0
.../contents_at_begin/contents_at_begin.html | 205 ----------
.../contents_at_begin_info/contents_at_begin.1 | 0
.../contents_at_begin_info/contents_at_begin.2 | 0
.../contents_at_begin_info/contents_at_begin.info | 35 --
.../contents_at_begin_inline/contents_at_begin.1 | 0
.../contents_at_begin_inline/contents_at_begin.2 | 0
.../contents_at_begin.html | 199 ---------
.../test_scripts/contents_contents_at_begin.sh | 19 -
.../contents_contents_at_begin_info.sh | 19 -
.../contents_contents_at_begin_inline.sh | 19 -
30 files changed, 995 insertions(+), 1281 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2e0cbcd005..8f7ceb9bd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2023-01-03 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/HTML.pm (output, _html_set_pages_files): set
+ element units next and prev in output and not in
+ _html_set_pages_files, in order to do it even if th efile is not set.
+
+ * tp/t/40moresectioning.t, tp/Makefile.tres, tp/t/converters_tests.t,
+ tp/tests/contents/list-of-tests: inline contents_at_document_begin.texi
+ test in tp/t/40moresectioning.t. Replace
+ contents_at_document_begin.texi contents with the
+ tests/contents/contents_at_begin.texi file contents, without
+ @setfilenale. Add contents_at_document_begin,
+ contents_at_document_begin_inline and
+ contents_at_document_begin_separate_element tests in
+ tp/t/converters_tests.t and remove the contents_at_begin,
+ contents_at_begin_inline and contents_at_begin_info tests from
+ tp/tests/contents/list-of-tests, since the tests in
+ tp/t/converters_tests.t now test for much more.
+
2023-01-03 Gavin Smith <gavinsmith0123@gmail.com>
* Makefile.am (EXTRA_DIST): Distribute more recent ChangeLog.65
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index 63198dd1ce..325f403204 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -148,6 +148,12 @@ test_files_generated_list =
$(test_tap_files_generated_list) \
t/results/converters_tests/combined_fonts/res_latex/combined_fonts.tex \
t/results/converters_tests/combined_fonts/res_xml/combined_fonts.xml \
t/results/converters_tests/complex_nestings.pl \
+ t/results/converters_tests/contents_at_document_begin.pl \
+
t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
\
+ t/results/converters_tests/contents_at_document_begin_inline.pl \
+
t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
\
+ t/results/converters_tests/contents_at_document_begin_separate_element.pl \
+
t/results/converters_tests/contents_at_document_begin_separate_element/res_html/contents_at_document_begin.html
\
t/results/converters_tests/definition_commands.pl \
t/results/converters_tests/definition_commands/res_html/chapter.html \
t/results/converters_tests/definition_commands/res_html/index.html \
@@ -1607,7 +1613,7 @@ test_files_generated_list =
$(test_tap_files_generated_list) \
t/results/moresectioning/complex_split_at_node.pl \
t/results/moresectioning/contents.pl \
t/results/moresectioning/contents_and_shortcontents.pl \
- t/results/moresectioning/contents_at_document_begin.pl \
+ t/results/moresectioning/contents_at_begin_chapter_without_node.pl \
t/results/moresectioning/contents_at_end_document.pl \
t/results/moresectioning/contents_at_end_document_after_node.pl \
t/results/moresectioning/contents_in_document.pl \
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 40d9a96489..48be8e587a 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -7039,7 +7039,8 @@ sub _default_format_element_footer($$$$;$)
if (($is_top or $is_special)
and ($self->get_conf('SPLIT') or !$self->get_conf('MONOLITHIC'))
and (($self->get_conf('HEADERS')
- or ($self->get_conf('SPLIT') and $self->get_conf('SPLIT') ne
'node')))) {
+ or ($self->get_conf('SPLIT')
+ and $self->get_conf('SPLIT') ne 'node')))) {
if ($is_top) {
$buttons = $self->get_conf('TOP_BUTTONS');
} else {
@@ -8651,7 +8652,6 @@ sub _html_set_pages_files($$$$$$$$)
if ($self->get_conf('DEBUG'));
}
if ($special_elements) {
- my $previous_tree_unit = $tree_units->[-1];
foreach my $special_element (@$special_elements) {
my $filename
= $self->{'targets'}->{$special_element}->{'special_element_filename'};
@@ -8667,9 +8667,6 @@ sub _html_set_pages_files($$$$$$$$)
.": $filename($self->{'file_counters'}->{$filename})\n"
if ($self->get_conf('DEBUG'));
}
- $special_element->{'structure'}->{'unit_prev'} = $previous_tree_unit;
- $previous_tree_unit->{'structure'}->{'unit_next'} = $special_element;
- $previous_tree_unit = $special_element;
}
}
foreach my $filename (keys(%filenames_paths)) {
@@ -10568,6 +10565,15 @@ sub output($$)
$destination_directory, $output_filename, $document_name);
}
+ if ($special_elements and defined($tree_units) and scalar(@$tree_units)) {
+ my $previous_tree_unit = $tree_units->[-1];
+ foreach my $special_element (@$special_elements) {
+ $special_element->{'structure'}->{'unit_prev'} = $previous_tree_unit;
+ $previous_tree_unit->{'structure'}->{'unit_next'} = $special_element;
+ $previous_tree_unit = $special_element;
+ }
+ }
+
$self->_prepare_contents_elements();
# do tree units directions.
diff --git a/tp/t/40moresectioning.t b/tp/t/40moresectioning.t
index 90a6fa7811..6c07a26032 100644
--- a/tp/t/40moresectioning.t
+++ b/tp/t/40moresectioning.t
@@ -555,8 +555,14 @@ in chap
@xref{after}.
'],
-['contents_at_document_begin',
-undef, {'test_file' => 'contents_at_document_begin.texi'}],
+['contents_at_begin_chapter_without_node',
+'@contents
+
+@node Top
+@top contents at document begin
+
+@chapter chap
+'],
['contents_at_end_document_after_node',
undef, {'test_file' => 'contents_at_end_document_after_node.texi'}],
['contents_at_end_document',
diff --git a/tp/t/converters_tests.t b/tp/t/converters_tests.t
index 32bab26a50..45df7fe27b 100644
--- a/tp/t/converters_tests.t
+++ b/tp/t/converters_tests.t
@@ -1061,6 +1061,19 @@ deftypeop n
defop n
@end defop
'],
+# the big rule is set to be different from the normal rule to check the type
+# of rule output
+['contents_at_document_begin',
+undef, {'test_file' => 'contents_at_document_begin.texi'},
+ {'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}],
+['contents_at_document_begin_inline',
+undef, {'test_file' => 'contents_at_document_begin.texi'},
+ {'CONTENTS_OUTPUT_LOCATION' => 'inline',
+ 'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}],
+['contents_at_document_begin_separate_element',
+undef, {'test_file' => 'contents_at_document_begin.texi',},
+ {'CONTENTS_OUTPUT_LOCATION' => 'separate_element',
+ 'SPLIT' => '', 'BIG_RULE' => '<hr style="height: 6px;">'}],
);
my @html_text_cases = (
@@ -1204,17 +1217,26 @@ my %info_tests = (
'things_before_setfilename_no_element' => 1,
'spaces_in_node_names' => 1,
'spaces_in_empty_node_names' => 1,
- 'non_empty_part' => 1,
+ 'non_empty_part' => 1,
+ 'contents_at_document_begin' => 1,
+ 'contents_at_document_begin_inline' => 1,
+ 'contents_at_document_begin_separate_element' => 1,
);
my %html_tests = (
'things_before_setfilename' => 1,
'things_before_setfilename_no_element' => 1,
'line_breaks' => 1,
+ 'contents_at_document_begin' => 1,
+ 'contents_at_document_begin_inline' => 1,
+ 'contents_at_document_begin_separate_element' => 1,
);
my %file_html_tests = (
- 'definition_commands' => 1,
+ 'definition_commands' => 1,
+ 'contents_at_document_begin' => 1,
+ 'contents_at_document_begin_inline' => 1,
+ 'contents_at_document_begin_separate_element' => 1,
);
my %docbooc_doc_tests = (
@@ -1222,8 +1244,8 @@ my %docbooc_doc_tests = (
);
my %file_latex_tests = (
- 'printindex_merged_indices_code_style' => 1,
- 'definition_commands' => 1,
+ 'printindex_merged_indices_code_style' => 1,
+ 'definition_commands' => 1,
);
foreach my $test (@test_cases) {
diff --git a/tp/t/input_files/contents_at_document_begin.texi
b/tp/t/input_files/contents_at_document_begin.texi
index e5380775d0..fce7644285 100644
--- a/tp/t/input_files/contents_at_document_begin.texi
+++ b/tp/t/input_files/contents_at_document_begin.texi
@@ -3,9 +3,17 @@
@contents
@node Top
-@top contents at document begin
+@top Contents at beginning
-@chapter chap
+Content at the beginning.
-@bye
+@menu
+* chapter::
+@end menu
+
+@node chapter
+@chapter Chapter 1
+The chapter
+
+@bye
diff --git a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
b/tp/t/results/converters_tests/contents_at_document_begin.pl
similarity index 50%
copy from tp/t/results/moresectioning/anchor_in_footnote_separate.pl
copy to tp/t/results/converters_tests/contents_at_document_begin.pl
index afebfb02d6..23e31c94ab 100644
--- a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
+++ b/tp/t/results/converters_tests/contents_at_document_begin.pl
@@ -5,39 +5,49 @@ use vars qw(%result_texis %result_texts %result_trees
%result_errors
use utf8;
-$result_trees{'anchor_in_footnote_separate'} = {
+$result_trees{'contents_at_document_begin'} = {
'contents' => [
{
'contents' => [
{
- 'args' => [
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
{
- 'contents' => [
+ 'args' => [
{
- 'text' => 'separate'
+ 'text' => '
+',
+ 'type' => 'misc_arg'
}
],
- 'info' => {
- 'spaces_after_argument' => '
-'
- },
- 'type' => 'line_arg'
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
}
],
- 'cmdname' => 'footnotestyle',
- 'extra' => {
- 'misc_args' => [
- 'separate'
- ]
- },
- 'info' => {
- 'spaces_before_argument' => ' '
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 1,
- 'macro' => ''
- }
+ 'type' => 'preamble_before_content'
}
],
'type' => 'before_node_section'
@@ -76,8 +86,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 2,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 5,
'macro' => ''
}
},
@@ -86,7 +96,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'Top'
+ 'text' => 'Contents at beginning'
}
],
'info' => {
@@ -106,62 +116,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'In top node'
- },
- {
- 'args' => [
- {
- 'contents' => [
- {
- 'contents' => [
- {
- 'text' => 'in footnote
-'
- },
- {
- 'args' => [
- {
- 'contents' => [
- {
- 'text' => 'Anchor in footnote'
- }
- ],
- 'type' => 'brace_command_arg'
- }
- ],
- 'cmdname' => 'anchor',
- 'extra' => {
- 'node_content' => [
- {}
- ],
- 'normalized' => 'Anchor-in-footnote'
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 6,
- 'macro' => ''
- }
- },
- {
- 'text' => '.
-'
- }
- ],
- 'type' => 'paragraph'
- }
- ],
- 'type' => 'brace_command_context'
- }
- ],
- 'cmdname' => 'footnote',
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 5,
- 'macro' => ''
- }
- },
- {
- 'text' => '
+ 'text' => 'Content at the beginning.
'
}
],
@@ -176,7 +131,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
'args' => [
{
'info' => {
- 'spaces_after_argument' => '
+ 'spaces_after_argument' => '
'
},
'type' => 'block_line_arg'
@@ -227,8 +182,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
}
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 10,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 11,
'macro' => ''
},
'type' => 'menu_entry'
@@ -256,15 +211,15 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 11,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 12,
'macro' => ''
}
}
],
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 9,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 10,
'macro' => ''
}
},
@@ -279,8 +234,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 3,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 6,
'macro' => ''
}
},
@@ -318,8 +273,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 13,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 14,
'macro' => ''
}
},
@@ -328,7 +283,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'Chap'
+ 'text' => 'Chapter 1'
}
],
'info' => {
@@ -348,38 +303,16 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'args' => [
- {
- 'contents' => [
- {
- 'text' => 'Anchor in footnote'
- }
- ],
- 'type' => 'brace_command_arg'
- }
- ],
- 'cmdname' => 'ref',
- 'extra' => {
- 'label' => {},
- 'node_argument' => {
- 'node_content' => [
- {}
- ],
- 'normalized' => 'Anchor-in-footnote'
- }
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 16,
- 'macro' => ''
- }
- },
- {
- 'text' => '.
+ 'text' => 'The chapter
'
}
],
'type' => 'paragraph'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
}
],
'extra' => {},
@@ -387,57 +320,69 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 14,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 15,
'macro' => ''
}
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
}
],
'type' => 'document_root'
};
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'label'}
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
-
-$result_texis{'anchor_in_footnote_separate'} = '@footnotestyle separate
+$result_trees{'contents_at_document_begin'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_document_begin'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'contents_at_document_begin'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_at_document_begin'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_at_document_begin'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_document_begin'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+
+$result_texis{'contents_at_document_begin'} = '\\input texinfo @c -*-texinfo-*-
+
+@contents
+
@node Top
-@top Top
+@top Contents at beginning
-In top node@footnote{in footnote
-@anchor{Anchor in footnote}.
-}
+Content at the beginning.
-@menu
+@menu
* chapter::
@end menu
@node chapter
-@chapter Chap
+@chapter Chapter 1
+
+The chapter
-@ref{Anchor in footnote}.
+@bye
';
-$result_texts{'anchor_in_footnote_separate'} = 'Top
-***
+$result_texts{'contents_at_document_begin'} = '
+Contents at beginning
+*********************
-In top node
+Content at the beginning.
* chapter::
-1 Chap
-******
+1 Chapter 1
+***********
+
+The chapter
-Anchor in footnote.
';
-$result_sectioning{'anchor_in_footnote_separate'} = {
+$result_sectioning{'contents_at_document_begin'} = {
'structure' => {
'section_childs' => [
{
@@ -485,12 +430,12 @@ $result_sectioning{'anchor_in_footnote_separate'} = {
'section_level' => -1
}
};
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'anchor_in_footnote_separate'};
+$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'contents_at_document_begin'};
-$result_nodes{'anchor_in_footnote_separate'} = {
+$result_nodes{'contents_at_document_begin'} = {
'cmdname' => 'node',
'extra' => {
'associated_section' => {
@@ -530,11 +475,11 @@ $result_nodes{'anchor_in_footnote_separate'} = {
'node_next' => {}
}
};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'anchor_in_footnote_separate'};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'anchor_in_footnote_separate'};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'node_next'} =
$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'};
+$result_nodes{'contents_at_document_begin'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'contents_at_document_begin'};
+$result_nodes{'contents_at_document_begin'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'contents_at_document_begin'};
+$result_nodes{'contents_at_document_begin'}{'structure'}{'node_next'} =
$result_nodes{'contents_at_document_begin'}{'structure'}{'menu_child'};
-$result_menus{'anchor_in_footnote_separate'} = {
+$result_menus{'contents_at_document_begin'} = {
'cmdname' => 'node',
'extra' => {
'normalized' => 'Top'
@@ -556,118 +501,175 @@ $result_menus{'anchor_in_footnote_separate'} = {
}
}
};
-$result_menus{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'anchor_in_footnote_separate'};
-
-$result_errors{'anchor_in_footnote_separate'} = [];
-
+$result_menus{'contents_at_document_begin'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'contents_at_document_begin'};
-$result_floats{'anchor_in_footnote_separate'} = {};
+$result_errors{'contents_at_document_begin'} = [];
+$result_floats{'contents_at_document_begin'} = {};
-$result_converted{'info'}->{'anchor_in_footnote_separate'} = 'This is ,
produced from .
-
-
-File: , Node: Top, Next: chapter, Up: (dir)
-
-Top
-***
-
-In top node(1) (*note Top-Footnote-1::)
-
-* Menu:
-
-* chapter::
-
-
-File: , Node: Top-Footnotes, Up: Top
- (1) in footnote .
-
-File: , Node: chapter, Prev: Top, Up: Top
+$result_converted{'plaintext'}->{'contents_at_document_begin'} = 'Contents at
beginning
+1 Chapter 1
+Contents at beginning
+*********************
-1 Chap
-******
+Content at the beginning.
-*note Anchor in footnote::.
+1 Chapter 1
+***********
-
-Tag Table:
-Node: Top27
-Node: Top-Footnotes149
-Ref: Top-Footnote-1191
-Ref: Anchor in footnote209
-Node: chapter213
-
-End Tag Table
+The chapter
-
-Local Variables:
-coding: utf-8
-End:
';
-$result_converted{'html'}->{'anchor_in_footnote_separate'} = '<!DOCTYPE html>
+$result_converted{'html'}->{'contents_at_document_begin'} = '<!DOCTYPE html>
<html>
<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Top</title>
+<title>Contents at beginning</title>
-<meta name="description" content="Top">
-<meta name="keywords" content="Top">
+<meta name="description" content="Contents at beginning">
+<meta name="keywords" content="Contents at beginning">
<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">
+<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">Chap</a> </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="Top-1">Top</h1>
+<h1 class="top" id="Contents-at-beginning">Contents at beginning</h1>
-<p>In top node<a class="footnote" id="DOCF1" href="#FOOT1"><sup>1</sup></a>
+<p>Content at the beginning.
</p>
-<ul class="mini-toc">
-<li><a href="#chapter" accesskey="1">Chap</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">1 Chapter 1</a></li>
</ul>
-<hr>
-<div class="chapter-level-extent" id="chapter">
-<div class="nav-panel">
-<p>
-Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top"
accesskey="u" rel="up">Top</a> </p>
</div>
-<h2 class="chapter" id="Chap">1 Chap</h2>
-
-<p><a class="ref" href="#Anchor-in-footnote">Anchor in footnote</a>.
-</p></div>
</div>
-<div class="element-footnotes" id="SEC_Footnotes">
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter">
<div class="nav-panel">
<p>
- </p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents at beginning</a>,
Up: <a href="#Top" accesskey="u" rel="up">Contents at beginning</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
-<h4 class="footnotes-heading">Footnotes</h4>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
-<h5 class="footnote-body-heading"><a id="FOOT1" href="#DOCF1">(1)</a></h5>
-<p>in footnote
-<a class="anchor" id="Anchor-in-footnote"></a>.
+<p>The chapter
</p>
</div>
+</div>
+
</body>
</html>
';
+
+$result_converted{'xml'}->{'contents_at_document_begin'} =
'<preamblebeforebeginning>\\input texinfo @c -*-texinfo-*-
+
+</preamblebeforebeginning><contents></contents>
+
+<node name="Top" spaces=" "><nodename>Top</nodename><nodenext
automatic="on">chapter</nodenext></node>
+<top spaces=" "><sectiontitle>Contents at beginning</sectiontitle>
+
+<para>Content at the beginning.
+</para>
+<menu endspaces=" ">
+<menuentry><menuleadingtext>*
</menuleadingtext><menunode>chapter</menunode><menuseparator>::</menuseparator><menudescription><pre
xml:space="preserve">
+</pre></menudescription></menuentry></menu>
+
+</top>
+<node name="chapter" spaces=" "><nodename>chapter</nodename><nodeprev
automatic="on">Top</nodeprev><nodeup automatic="on">Top</nodeup></node>
+<chapter spaces=" "><sectiontitle>Chapter 1</sectiontitle>
+
+<para>The chapter
+</para>
+</chapter>
+<bye></bye>
+';
+
+
+$result_converted{'docbook'}->{'contents_at_document_begin'} = '<chapter
label="1" id="chapter">
+<title>Chapter 1</title>
+
+<para>The chapter
+</para>
+</chapter>
+';
+
+
+$result_converted{'latex_text'}->{'contents_at_document_begin'} = '
+\\begin{document}
+\\tableofcontents\\newpage
+\\label{anchor:Top}%
+\\chapter{{Chapter 1}}
+\\label{anchor:chapter}%
+
+The chapter
+
+';
+
+
+$result_converted{'info'}->{'contents_at_document_begin'} = 'This is ,
produced from contents_at_document_begin.texi.
+
+
+File: , Node: Top, Next: chapter, Up: (dir)
+
+Contents at beginning
+*********************
+
+Content at the beginning.
+
+* Menu:
+
+* chapter::
+
+
+File: , Node: chapter, Prev: Top, Up: Top
+
+1 Chapter 1
+***********
+
+The chapter
+
+
+
+Tag Table:
+Node: Top58
+Node: chapter202
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
+';
+
1;
diff --git
a/tp/t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
b/tp/t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
new file mode 100644
index 0000000000..6dd55290c4
--- /dev/null
+++
b/tp/t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Contents at beginning</title>
+
+<meta name="description" content="Contents at beginning">
+<meta name="keywords" content="Contents at beginning">
+<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="Contents-at-beginning">Contents at beginning</h1>
+
+<p>Content at the beginning.
+</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></li>
+</ul>
+</div>
+</div>
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents at beginning</a>,
Up: <a href="#Top" accesskey="u" rel="up">Contents at beginning</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>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
b/tp/t/results/converters_tests/contents_at_document_begin_inline.pl
similarity index 51%
copy from tp/t/results/moresectioning/anchor_in_footnote_separate.pl
copy to tp/t/results/converters_tests/contents_at_document_begin_inline.pl
index afebfb02d6..c33d0b409e 100644
--- a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
+++ b/tp/t/results/converters_tests/contents_at_document_begin_inline.pl
@@ -5,39 +5,49 @@ use vars qw(%result_texis %result_texts %result_trees
%result_errors
use utf8;
-$result_trees{'anchor_in_footnote_separate'} = {
+$result_trees{'contents_at_document_begin_inline'} = {
'contents' => [
{
'contents' => [
{
- 'args' => [
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
{
- 'contents' => [
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
{
- 'text' => 'separate'
+ 'text' => '
+',
+ 'type' => 'misc_arg'
}
],
- 'info' => {
- 'spaces_after_argument' => '
-'
- },
- 'type' => 'line_arg'
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
}
],
- 'cmdname' => 'footnotestyle',
- 'extra' => {
- 'misc_args' => [
- 'separate'
- ]
- },
- 'info' => {
- 'spaces_before_argument' => ' '
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 1,
- 'macro' => ''
- }
+ 'type' => 'preamble_before_content'
}
],
'type' => 'before_node_section'
@@ -76,8 +86,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 2,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 5,
'macro' => ''
}
},
@@ -86,7 +96,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'Top'
+ 'text' => 'Contents at beginning'
}
],
'info' => {
@@ -106,62 +116,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'In top node'
- },
- {
- 'args' => [
- {
- 'contents' => [
- {
- 'contents' => [
- {
- 'text' => 'in footnote
-'
- },
- {
- 'args' => [
- {
- 'contents' => [
- {
- 'text' => 'Anchor in footnote'
- }
- ],
- 'type' => 'brace_command_arg'
- }
- ],
- 'cmdname' => 'anchor',
- 'extra' => {
- 'node_content' => [
- {}
- ],
- 'normalized' => 'Anchor-in-footnote'
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 6,
- 'macro' => ''
- }
- },
- {
- 'text' => '.
-'
- }
- ],
- 'type' => 'paragraph'
- }
- ],
- 'type' => 'brace_command_context'
- }
- ],
- 'cmdname' => 'footnote',
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 5,
- 'macro' => ''
- }
- },
- {
- 'text' => '
+ 'text' => 'Content at the beginning.
'
}
],
@@ -176,7 +131,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
'args' => [
{
'info' => {
- 'spaces_after_argument' => '
+ 'spaces_after_argument' => '
'
},
'type' => 'block_line_arg'
@@ -227,8 +182,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
}
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 10,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 11,
'macro' => ''
},
'type' => 'menu_entry'
@@ -256,15 +211,15 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 11,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 12,
'macro' => ''
}
}
],
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 9,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 10,
'macro' => ''
}
},
@@ -279,8 +234,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 3,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 6,
'macro' => ''
}
},
@@ -318,8 +273,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 13,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 14,
'macro' => ''
}
},
@@ -328,7 +283,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'Chap'
+ 'text' => 'Chapter 1'
}
],
'info' => {
@@ -348,38 +303,16 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'args' => [
- {
- 'contents' => [
- {
- 'text' => 'Anchor in footnote'
- }
- ],
- 'type' => 'brace_command_arg'
- }
- ],
- 'cmdname' => 'ref',
- 'extra' => {
- 'label' => {},
- 'node_argument' => {
- 'node_content' => [
- {}
- ],
- 'normalized' => 'Anchor-in-footnote'
- }
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 16,
- 'macro' => ''
- }
- },
- {
- 'text' => '.
+ 'text' => 'The chapter
'
}
],
'type' => 'paragraph'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
}
],
'extra' => {},
@@ -387,57 +320,69 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 14,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 15,
'macro' => ''
}
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
}
],
'type' => 'document_root'
};
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'label'}
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
-
-$result_texis{'anchor_in_footnote_separate'} = '@footnotestyle separate
+$result_trees{'contents_at_document_begin_inline'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_inline'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin_inline'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_inline'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'contents_at_document_begin_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_at_document_begin_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_inline'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_at_document_begin_inline'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_inline'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin_inline'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_inline'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+
+$result_texis{'contents_at_document_begin_inline'} = '\\input texinfo @c
-*-texinfo-*-
+
+@contents
+
@node Top
-@top Top
+@top Contents at beginning
-In top node@footnote{in footnote
-@anchor{Anchor in footnote}.
-}
+Content at the beginning.
-@menu
+@menu
* chapter::
@end menu
@node chapter
-@chapter Chap
+@chapter Chapter 1
-@ref{Anchor in footnote}.
+The chapter
+
+@bye
';
-$result_texts{'anchor_in_footnote_separate'} = 'Top
-***
+$result_texts{'contents_at_document_begin_inline'} = '
+Contents at beginning
+*********************
-In top node
+Content at the beginning.
* chapter::
-1 Chap
-******
+1 Chapter 1
+***********
+
+The chapter
-Anchor in footnote.
';
-$result_sectioning{'anchor_in_footnote_separate'} = {
+$result_sectioning{'contents_at_document_begin_inline'} = {
'structure' => {
'section_childs' => [
{
@@ -485,12 +430,12 @@ $result_sectioning{'anchor_in_footnote_separate'} = {
'section_level' => -1
}
};
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'anchor_in_footnote_separate'};
+$result_sectioning{'contents_at_document_begin_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'contents_at_document_begin_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'contents_at_document_begin_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'contents_at_document_begin_inline'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin_inline'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'contents_at_document_begin_inline'};
-$result_nodes{'anchor_in_footnote_separate'} = {
+$result_nodes{'contents_at_document_begin_inline'} = {
'cmdname' => 'node',
'extra' => {
'associated_section' => {
@@ -530,11 +475,11 @@ $result_nodes{'anchor_in_footnote_separate'} = {
'node_next' => {}
}
};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'anchor_in_footnote_separate'};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'anchor_in_footnote_separate'};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'node_next'} =
$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'};
+$result_nodes{'contents_at_document_begin_inline'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'contents_at_document_begin_inline'};
+$result_nodes{'contents_at_document_begin_inline'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'contents_at_document_begin_inline'};
+$result_nodes{'contents_at_document_begin_inline'}{'structure'}{'node_next'} =
$result_nodes{'contents_at_document_begin_inline'}{'structure'}{'menu_child'};
-$result_menus{'anchor_in_footnote_separate'} = {
+$result_menus{'contents_at_document_begin_inline'} = {
'cmdname' => 'node',
'extra' => {
'normalized' => 'Top'
@@ -556,118 +501,178 @@ $result_menus{'anchor_in_footnote_separate'} = {
}
}
};
-$result_menus{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'anchor_in_footnote_separate'};
-
-$result_errors{'anchor_in_footnote_separate'} = [];
-
-
-$result_floats{'anchor_in_footnote_separate'} = {};
+$result_menus{'contents_at_document_begin_inline'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'contents_at_document_begin_inline'};
+$result_errors{'contents_at_document_begin_inline'} = [];
-$result_converted{'info'}->{'anchor_in_footnote_separate'} = 'This is ,
produced from .
+$result_floats{'contents_at_document_begin_inline'} = {};
-
-File: , Node: Top, Next: chapter, Up: (dir)
-
-Top
-***
-In top node(1) (*note Top-Footnote-1::)
-* Menu:
-
-* chapter::
-
-
-File: , Node: Top-Footnotes, Up: Top
-
- (1) in footnote .
-
-
-File: , Node: chapter, Prev: Top, Up: Top
+$result_converted{'plaintext'}->{'contents_at_document_begin_inline'} =
'Contents at beginning
+1 Chapter 1
+Contents at beginning
+*********************
-1 Chap
-******
+Content at the beginning.
-*note Anchor in footnote::.
+1 Chapter 1
+***********
-
-Tag Table:
-Node: Top27
-Node: Top-Footnotes149
-Ref: Top-Footnote-1191
-Ref: Anchor in footnote209
-Node: chapter213
-
-End Tag Table
+The chapter
-
-Local Variables:
-coding: utf-8
-End:
';
-$result_converted{'html'}->{'anchor_in_footnote_separate'} = '<!DOCTYPE html>
+$result_converted{'html'}->{'contents_at_document_begin_inline'} = '<!DOCTYPE
html>
<html>
<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Top</title>
+<title>Contents at beginning</title>
-<meta name="description" content="Top">
-<meta name="keywords" content="Top">
+<meta name="description" content="Contents at beginning">
+<meta name="keywords" content="Contents at beginning">
<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">
+<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></li>
+</ul>
+</div>
+</div>
+
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
-Next: <a href="#chapter" accesskey="n" rel="next">Chap</a> </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="Top-1">Top</h1>
+<h1 class="top" id="Contents-at-beginning">Contents at beginning</h1>
-<p>In top node<a class="footnote" id="DOCF1" href="#FOOT1"><sup>1</sup></a>
+<p>Content at the beginning.
</p>
<ul class="mini-toc">
-<li><a href="#chapter" accesskey="1">Chap</a></li>
+<li><a href="#chapter" accesskey="1">Chapter 1</a></li>
</ul>
-<hr>
+<hr style="height: 6px;">
<div class="chapter-level-extent" id="chapter">
<div class="nav-panel">
<p>
-Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top"
accesskey="u" rel="up">Top</a> </p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents at beginning</a>,
Up: <a href="#Top" accesskey="u" rel="up">Contents at beginning</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
-<h2 class="chapter" id="Chap">1 Chap</h2>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
-<p><a class="ref" href="#Anchor-in-footnote">Anchor in footnote</a>.
-</p></div>
+<p>The chapter
+</p>
</div>
-<div class="element-footnotes" id="SEC_Footnotes">
-<div class="nav-panel">
-<p>
- </p>
</div>
-<h4 class="footnotes-heading">Footnotes</h4>
-<h5 class="footnote-body-heading"><a id="FOOT1" href="#DOCF1">(1)</a></h5>
-<p>in footnote
-<a class="anchor" id="Anchor-in-footnote"></a>.
-</p>
-</div>
</body>
</html>
';
+
+$result_converted{'xml'}->{'contents_at_document_begin_inline'} =
'<preamblebeforebeginning>\\input texinfo @c -*-texinfo-*-
+
+</preamblebeforebeginning><contents></contents>
+
+<node name="Top" spaces=" "><nodename>Top</nodename><nodenext
automatic="on">chapter</nodenext></node>
+<top spaces=" "><sectiontitle>Contents at beginning</sectiontitle>
+
+<para>Content at the beginning.
+</para>
+<menu endspaces=" ">
+<menuentry><menuleadingtext>*
</menuleadingtext><menunode>chapter</menunode><menuseparator>::</menuseparator><menudescription><pre
xml:space="preserve">
+</pre></menudescription></menuentry></menu>
+
+</top>
+<node name="chapter" spaces=" "><nodename>chapter</nodename><nodeprev
automatic="on">Top</nodeprev><nodeup automatic="on">Top</nodeup></node>
+<chapter spaces=" "><sectiontitle>Chapter 1</sectiontitle>
+
+<para>The chapter
+</para>
+</chapter>
+<bye></bye>
+';
+
+
+$result_converted{'docbook'}->{'contents_at_document_begin_inline'} =
'<chapter label="1" id="chapter">
+<title>Chapter 1</title>
+
+<para>The chapter
+</para>
+</chapter>
+';
+
+
+$result_converted{'latex_text'}->{'contents_at_document_begin_inline'} =
'\\tableofcontents\\newpage
+
+\\begin{document}
+\\label{anchor:Top}%
+\\chapter{{Chapter 1}}
+\\label{anchor:chapter}%
+
+The chapter
+
+';
+
+
+$result_converted{'info'}->{'contents_at_document_begin_inline'} = 'This is ,
produced from contents_at_document_begin.texi.
+
+
+File: , Node: Top, Next: chapter, Up: (dir)
+
+Contents at beginning
+*********************
+
+Content at the beginning.
+
+* Menu:
+
+* chapter::
+
+
+File: , Node: chapter, Prev: Top, Up: Top
+
+1 Chapter 1
+***********
+
+The chapter
+
+
+
+Tag Table:
+Node: Top58
+Node: chapter202
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
+';
+
1;
diff --git
a/tp/t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
b/tp/t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
new file mode 100644
index 0000000000..0798cfad5d
--- /dev/null
+++
b/tp/t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Contents at beginning</title>
+
+<meta name="description" content="Contents at beginning">
+<meta name="keywords" content="Contents at beginning">
+<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></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="Contents-at-beginning">Contents at beginning</h1>
+
+<p>Content at the beginning.
+</p>
+
+<ul class="mini-toc">
+<li><a href="#chapter" accesskey="1">Chapter 1</a></li>
+</ul>
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents at beginning</a>,
Up: <a href="#Top" accesskey="u" rel="up">Contents at beginning</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>
+</div>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
b/tp/t/results/converters_tests/contents_at_document_begin_separate_element.pl
similarity index 51%
copy from tp/t/results/moresectioning/anchor_in_footnote_separate.pl
copy to
tp/t/results/converters_tests/contents_at_document_begin_separate_element.pl
index afebfb02d6..c434fd5088 100644
--- a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
+++
b/tp/t/results/converters_tests/contents_at_document_begin_separate_element.pl
@@ -5,39 +5,49 @@ use vars qw(%result_texis %result_texts %result_trees
%result_errors
use utf8;
-$result_trees{'anchor_in_footnote_separate'} = {
+$result_trees{'contents_at_document_begin_separate_element'} = {
'contents' => [
{
'contents' => [
{
- 'args' => [
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [
{
- 'contents' => [
+ 'args' => [
{
- 'text' => 'separate'
+ 'text' => '
+',
+ 'type' => 'misc_arg'
}
],
- 'info' => {
- 'spaces_after_argument' => '
-'
- },
- 'type' => 'line_arg'
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
}
],
- 'cmdname' => 'footnotestyle',
- 'extra' => {
- 'misc_args' => [
- 'separate'
- ]
- },
- 'info' => {
- 'spaces_before_argument' => ' '
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 1,
- 'macro' => ''
- }
+ 'type' => 'preamble_before_content'
}
],
'type' => 'before_node_section'
@@ -76,8 +86,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 2,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 5,
'macro' => ''
}
},
@@ -86,7 +96,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'Top'
+ 'text' => 'Contents at beginning'
}
],
'info' => {
@@ -106,62 +116,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'In top node'
- },
- {
- 'args' => [
- {
- 'contents' => [
- {
- 'contents' => [
- {
- 'text' => 'in footnote
-'
- },
- {
- 'args' => [
- {
- 'contents' => [
- {
- 'text' => 'Anchor in footnote'
- }
- ],
- 'type' => 'brace_command_arg'
- }
- ],
- 'cmdname' => 'anchor',
- 'extra' => {
- 'node_content' => [
- {}
- ],
- 'normalized' => 'Anchor-in-footnote'
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 6,
- 'macro' => ''
- }
- },
- {
- 'text' => '.
-'
- }
- ],
- 'type' => 'paragraph'
- }
- ],
- 'type' => 'brace_command_context'
- }
- ],
- 'cmdname' => 'footnote',
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 5,
- 'macro' => ''
- }
- },
- {
- 'text' => '
+ 'text' => 'Content at the beginning.
'
}
],
@@ -176,7 +131,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
'args' => [
{
'info' => {
- 'spaces_after_argument' => '
+ 'spaces_after_argument' => '
'
},
'type' => 'block_line_arg'
@@ -227,8 +182,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
}
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 10,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 11,
'macro' => ''
},
'type' => 'menu_entry'
@@ -256,15 +211,15 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 11,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 12,
'macro' => ''
}
}
],
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 9,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 10,
'macro' => ''
}
},
@@ -279,8 +234,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 3,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 6,
'macro' => ''
}
},
@@ -318,8 +273,8 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 13,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 14,
'macro' => ''
}
},
@@ -328,7 +283,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'text' => 'Chap'
+ 'text' => 'Chapter 1'
}
],
'info' => {
@@ -348,38 +303,16 @@ $result_trees{'anchor_in_footnote_separate'} = {
{
'contents' => [
{
- 'args' => [
- {
- 'contents' => [
- {
- 'text' => 'Anchor in footnote'
- }
- ],
- 'type' => 'brace_command_arg'
- }
- ],
- 'cmdname' => 'ref',
- 'extra' => {
- 'label' => {},
- 'node_argument' => {
- 'node_content' => [
- {}
- ],
- 'normalized' => 'Anchor-in-footnote'
- }
- },
- 'source_info' => {
- 'file_name' => '',
- 'line_nr' => 16,
- 'macro' => ''
- }
- },
- {
- 'text' => '.
+ 'text' => 'The chapter
'
}
],
'type' => 'paragraph'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
}
],
'extra' => {},
@@ -387,57 +320,69 @@ $result_trees{'anchor_in_footnote_separate'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => '',
- 'line_nr' => 14,
+ 'file_name' => 'contents_at_document_begin.texi',
+ 'line_nr' => 15,
'macro' => ''
}
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
}
],
'type' => 'document_root'
};
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[3]{'args'}[0]{'contents'}[0];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'label'}
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[1];
-$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
=
$result_trees{'anchor_in_footnote_separate'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
-
-$result_texis{'anchor_in_footnote_separate'} = '@footnotestyle separate
+$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_description'}
=
$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[3];
+$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[2]{'contents'}[3]{'contents'}[0]{'args'}[1]{'contents'}[0];
+$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_document_begin_separate_element'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+
+$result_texis{'contents_at_document_begin_separate_element'} = '\\input
texinfo @c -*-texinfo-*-
+
+@contents
+
@node Top
-@top Top
+@top Contents at beginning
-In top node@footnote{in footnote
-@anchor{Anchor in footnote}.
-}
+Content at the beginning.
-@menu
+@menu
* chapter::
@end menu
@node chapter
-@chapter Chap
+@chapter Chapter 1
-@ref{Anchor in footnote}.
+The chapter
+
+@bye
';
-$result_texts{'anchor_in_footnote_separate'} = 'Top
-***
+$result_texts{'contents_at_document_begin_separate_element'} = '
+Contents at beginning
+*********************
-In top node
+Content at the beginning.
* chapter::
-1 Chap
-******
+1 Chapter 1
+***********
+
+The chapter
-Anchor in footnote.
';
-$result_sectioning{'anchor_in_footnote_separate'} = {
+$result_sectioning{'contents_at_document_begin_separate_element'} = {
'structure' => {
'section_childs' => [
{
@@ -485,12 +430,12 @@ $result_sectioning{'anchor_in_footnote_separate'} = {
'section_level' => -1
}
};
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'anchor_in_footnote_separate'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'anchor_in_footnote_separate'};
+$result_sectioning{'contents_at_document_begin_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'contents_at_document_begin_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'contents_at_document_begin_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'contents_at_document_begin_separate_element'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_document_begin_separate_element'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'contents_at_document_begin_separate_element'};
-$result_nodes{'anchor_in_footnote_separate'} = {
+$result_nodes{'contents_at_document_begin_separate_element'} = {
'cmdname' => 'node',
'extra' => {
'associated_section' => {
@@ -530,11 +475,11 @@ $result_nodes{'anchor_in_footnote_separate'} = {
'node_next' => {}
}
};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'anchor_in_footnote_separate'};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'anchor_in_footnote_separate'};
-$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'node_next'} =
$result_nodes{'anchor_in_footnote_separate'}{'structure'}{'menu_child'};
+$result_nodes{'contents_at_document_begin_separate_element'}{'structure'}{'menu_child'}{'structure'}{'node_prev'}
= $result_nodes{'contents_at_document_begin_separate_element'};
+$result_nodes{'contents_at_document_begin_separate_element'}{'structure'}{'menu_child'}{'structure'}{'node_up'}
= $result_nodes{'contents_at_document_begin_separate_element'};
+$result_nodes{'contents_at_document_begin_separate_element'}{'structure'}{'node_next'}
=
$result_nodes{'contents_at_document_begin_separate_element'}{'structure'}{'menu_child'};
-$result_menus{'anchor_in_footnote_separate'} = {
+$result_menus{'contents_at_document_begin_separate_element'} = {
'cmdname' => 'node',
'extra' => {
'normalized' => 'Top'
@@ -556,113 +501,95 @@ $result_menus{'anchor_in_footnote_separate'} = {
}
}
};
-$result_menus{'anchor_in_footnote_separate'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'anchor_in_footnote_separate'};
+$result_menus{'contents_at_document_begin_separate_element'}{'structure'}{'menu_child'}{'structure'}{'menu_up'}
= $result_menus{'contents_at_document_begin_separate_element'};
-$result_errors{'anchor_in_footnote_separate'} = [];
+$result_errors{'contents_at_document_begin_separate_element'} = [];
-$result_floats{'anchor_in_footnote_separate'} = {};
+$result_floats{'contents_at_document_begin_separate_element'} = {};
-$result_converted{'info'}->{'anchor_in_footnote_separate'} = 'This is ,
produced from .
+$result_converted{'plaintext'}->{'contents_at_document_begin_separate_element'}
= 'Contents at beginning
+1 Chapter 1
+Contents at beginning
+*********************
-
-File: , Node: Top, Next: chapter, Up: (dir)
-
-Top
-***
+Content at the beginning.
-In top node(1) (*note Top-Footnote-1::)
+1 Chapter 1
+***********
-* Menu:
-
-* chapter::
+The chapter
-
-File: , Node: Top-Footnotes, Up: Top
-
- (1) in footnote .
-
-
-File: , Node: chapter, Prev: Top, Up: Top
-
-1 Chap
-******
-
-*note Anchor in footnote::.
-
-
-Tag Table:
-Node: Top27
-Node: Top-Footnotes149
-Ref: Top-Footnote-1191
-Ref: Anchor in footnote209
-Node: chapter213
-
-End Tag Table
-
-
-Local Variables:
-coding: utf-8
-End:
';
-$result_converted{'html'}->{'anchor_in_footnote_separate'} = '<!DOCTYPE html>
+$result_converted{'html'}->{'contents_at_document_begin_separate_element'} =
'<!DOCTYPE html>
<html>
<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Top</title>
+<title>Contents at beginning</title>
-<meta name="description" content="Top">
-<meta name="keywords" content="Top">
+<meta name="description" content="Contents at beginning">
+<meta name="keywords" content="Contents at beginning">
<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">
+<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">Chap</a> </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="Top-1">Top</h1>
+<h1 class="top" id="Contents-at-beginning">Contents at beginning</h1>
-<p>In top node<a class="footnote" id="DOCF1" href="#FOOT1"><sup>1</sup></a>
+<p>Content at the beginning.
</p>
<ul class="mini-toc">
-<li><a href="#chapter" accesskey="1">Chap</a></li>
+<li><a href="#chapter" accesskey="1">Chapter 1</a></li>
</ul>
-<hr>
+<hr style="height: 6px;">
<div class="chapter-level-extent" id="chapter">
<div class="nav-panel">
<p>
-Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top"
accesskey="u" rel="up">Top</a> </p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents at beginning</a>,
Up: <a href="#Top" accesskey="u" rel="up">Contents at beginning</a> [<a
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
-<h2 class="chapter" id="Chap">1 Chap</h2>
+<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
-<p><a class="ref" href="#Anchor-in-footnote">Anchor in footnote</a>.
-</p></div>
+<p>The chapter
+</p>
+<hr style="height: 6px;">
</div>
-<div class="element-footnotes" id="SEC_Footnotes">
+</div>
+<div class="element-contents" id="SEC_Contents">
<div class="nav-panel">
<p>
- </p>
+ [<a href="#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>]</p>
</div>
-<h4 class="footnotes-heading">Footnotes</h4>
+<h2 class="contents-heading">Table of Contents</h2>
-<h5 class="footnote-body-heading"><a id="FOOT1" href="#DOCF1">(1)</a></h5>
-<p>in footnote
-<a class="anchor" id="Anchor-in-footnote"></a>.
-</p>
+<div class="contents">
+
+<ul class="toc-numbered-mark">
+ <li><a id="toc-Chapter-1" href="#chapter">1 Chapter 1</a></li>
+</ul>
+</div>
</div>
@@ -670,4 +597,86 @@ Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>,
Up: <a href="#Top" ac
</html>
';
+
+$result_converted{'xml'}->{'contents_at_document_begin_separate_element'} =
'<preamblebeforebeginning>\\input texinfo @c -*-texinfo-*-
+
+</preamblebeforebeginning><contents></contents>
+
+<node name="Top" spaces=" "><nodename>Top</nodename><nodenext
automatic="on">chapter</nodenext></node>
+<top spaces=" "><sectiontitle>Contents at beginning</sectiontitle>
+
+<para>Content at the beginning.
+</para>
+<menu endspaces=" ">
+<menuentry><menuleadingtext>*
</menuleadingtext><menunode>chapter</menunode><menuseparator>::</menuseparator><menudescription><pre
xml:space="preserve">
+</pre></menudescription></menuentry></menu>
+
+</top>
+<node name="chapter" spaces=" "><nodename>chapter</nodename><nodeprev
automatic="on">Top</nodeprev><nodeup automatic="on">Top</nodeup></node>
+<chapter spaces=" "><sectiontitle>Chapter 1</sectiontitle>
+
+<para>The chapter
+</para>
+</chapter>
+<bye></bye>
+';
+
+
+$result_converted{'docbook'}->{'contents_at_document_begin_separate_element'}
= '<chapter label="1" id="chapter">
+<title>Chapter 1</title>
+
+<para>The chapter
+</para>
+</chapter>
+';
+
+
+$result_converted{'latex_text'}->{'contents_at_document_begin_separate_element'}
= '
+\\begin{document}
+\\tableofcontents\\newpage
+\\label{anchor:Top}%
+\\chapter{{Chapter 1}}
+\\label{anchor:chapter}%
+
+The chapter
+
+';
+
+
+$result_converted{'info'}->{'contents_at_document_begin_separate_element'} =
'This is , produced from contents_at_document_begin.texi.
+
+
+File: , Node: Top, Next: chapter, Up: (dir)
+
+Contents at beginning
+*********************
+
+Content at the beginning.
+
+* Menu:
+
+* chapter::
+
+
+File: , Node: chapter, Prev: Top, Up: Top
+
+1 Chapter 1
+***********
+
+The chapter
+
+
+
+Tag Table:
+Node: Top58
+Node: chapter202
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
+';
+
1;
diff --git
a/tp/t/results/converters_tests/contents_at_document_begin_separate_element/res_html/contents_at_document_begin.html
b/tp/t/results/converters_tests/contents_at_document_begin_separate_element/res_html/contents_at_document_begin.html
new file mode 100644
index 0000000000..4ab2d2cdaa
--- /dev/null
+++
b/tp/t/results/converters_tests/contents_at_document_begin_separate_element/res_html/contents_at_document_begin.html
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Contents at beginning</title>
+
+<meta name="description" content="Contents at beginning">
+<meta name="keywords" content="Contents at beginning">
+<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="Contents-at-beginning">Contents at beginning</h1>
+
+<p>Content at the beginning.
+</p>
+
+<ul class="mini-toc">
+<li><a href="#chapter" accesskey="1">Chapter 1</a></li>
+</ul>
+<hr style="height: 6px;">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="prev">Contents at beginning</a>,
Up: <a href="#Top" accesskey="u" rel="up">Contents at beginning</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>
+<hr style="height: 6px;">
+</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></li>
+</ul>
+</div>
+</div>
+
+
+</body>
+</html>
diff --git a/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl
b/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl
index fd9e9fbeda..819dced460 100644
--- a/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl
+++ b/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl
@@ -740,6 +740,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">2
footnotes in 2 nodes</a>, Up
</p>
<p>D<a class="footnote" id="DOCF4" href="#FOOT4"><sup>4</sup></a>
</p>
+<hr>
</div>
</div>
<div class="element-footnotes" id="SEC_Footnotes">
diff --git a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
b/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
index afebfb02d6..7e4772e68d 100644
--- a/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
+++ b/tp/t/results/moresectioning/anchor_in_footnote_separate.pl
@@ -650,7 +650,8 @@ Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>,
Up: <a href="#Top" ac
<h2 class="chapter" id="Chap">1 Chap</h2>
<p><a class="ref" href="#Anchor-in-footnote">Anchor in footnote</a>.
-</p></div>
+</p><hr>
+</div>
</div>
<div class="element-footnotes" id="SEC_Footnotes">
<div class="nav-panel">
diff --git a/tp/t/results/moresectioning/contents_at_document_begin.pl
b/tp/t/results/moresectioning/contents_at_begin_chapter_without_node.pl
similarity index 53%
rename from tp/t/results/moresectioning/contents_at_document_begin.pl
rename to tp/t/results/moresectioning/contents_at_begin_chapter_without_node.pl
index 5aab473cde..0c10a6b40b 100644
--- a/tp/t/results/moresectioning/contents_at_document_begin.pl
+++ b/tp/t/results/moresectioning/contents_at_begin_chapter_without_node.pl
@@ -5,49 +5,29 @@ use vars qw(%result_texis %result_texts %result_trees
%result_errors
use utf8;
-$result_trees{'contents_at_document_begin'} = {
+$result_trees{'contents_at_begin_chapter_without_node'} = {
'contents' => [
{
'contents' => [
{
- 'contents' => [
- {
- 'text' => '\\input texinfo @c -*-texinfo-*-
-',
- 'type' => 'text_before_beginning'
- },
+ 'args' => [
{
'text' => '
',
- 'type' => 'text_before_beginning'
+ 'type' => 'misc_arg'
}
],
- 'type' => 'preamble_before_beginning'
+ 'cmdname' => 'contents',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ }
},
{
- 'contents' => [
- {
- 'args' => [
- {
- 'text' => '
-',
- 'type' => 'misc_arg'
- }
- ],
- 'cmdname' => 'contents',
- 'source_info' => {
- 'file_name' => 'contents_at_document_begin.texi',
- 'line_nr' => 3,
- 'macro' => ''
- }
- },
- {
- 'text' => '
+ 'text' => '
',
- 'type' => 'empty_line'
- }
- ],
- 'type' => 'preamble_before_content'
+ 'type' => 'empty_line'
}
],
'type' => 'before_node_section'
@@ -86,8 +66,8 @@ $result_trees{'contents_at_document_begin'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => 'contents_at_document_begin.texi',
- 'line_nr' => 5,
+ 'file_name' => '',
+ 'line_nr' => 3,
'macro' => ''
}
},
@@ -119,8 +99,8 @@ $result_trees{'contents_at_document_begin'} = {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => 'contents_at_document_begin.texi',
- 'line_nr' => 6,
+ 'file_name' => '',
+ 'line_nr' => 4,
'macro' => ''
}
},
@@ -140,72 +120,39 @@ $result_trees{'contents_at_document_begin'} = {
}
],
'cmdname' => 'chapter',
- 'contents' => [
- {
- 'text' => '
-',
- 'type' => 'empty_line'
- }
- ],
'info' => {
'spaces_before_argument' => ' '
},
'source_info' => {
- 'file_name' => 'contents_at_document_begin.texi',
- 'line_nr' => 8,
+ 'file_name' => '',
+ 'line_nr' => 6,
'macro' => ''
}
- },
- {
- 'args' => [
- {
- 'text' => '
-',
- 'type' => 'misc_arg'
- }
- ],
- 'cmdname' => 'bye'
- },
- {
- 'contents' => [
- {
- 'text' => '
-',
- 'type' => 'text_after_end'
- }
- ],
- 'type' => 'postamble_after_end'
}
],
'type' => 'document_root'
};
-$result_trees{'contents_at_document_begin'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_document_begin'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-$result_trees{'contents_at_document_begin'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_document_begin'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-
-$result_texis{'contents_at_document_begin'} = '\\input texinfo @c -*-texinfo-*-
+$result_trees{'contents_at_begin_chapter_without_node'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'contents_at_begin_chapter_without_node'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'contents_at_begin_chapter_without_node'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'contents_at_begin_chapter_without_node'}{'contents'}[1]{'args'}[0]{'contents'}[0];
-@contents
+$result_texis{'contents_at_begin_chapter_without_node'} = '@contents
@node Top
@top contents at document begin
@chapter chap
-
-@bye
-
';
-$result_texts{'contents_at_document_begin'} = '
+$result_texts{'contents_at_begin_chapter_without_node'} = '
contents at document begin
**************************
1 chap
******
-
';
-$result_sectioning{'contents_at_document_begin'} = {
+$result_sectioning{'contents_at_begin_chapter_without_node'} = {
'structure' => {
'section_childs' => [
{
@@ -242,12 +189,12 @@ $result_sectioning{'contents_at_document_begin'} = {
'section_level' => -1
}
};
-$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0];
-$result_sectioning{'contents_at_document_begin'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'contents_at_document_begin'};
+$result_sectioning{'contents_at_begin_chapter_without_node'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'contents_at_begin_chapter_without_node'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_begin_chapter_without_node'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'contents_at_begin_chapter_without_node'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_begin_chapter_without_node'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'contents_at_begin_chapter_without_node'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'contents_at_begin_chapter_without_node'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'contents_at_begin_chapter_without_node'};
-$result_nodes{'contents_at_document_begin'} = {
+$result_nodes{'contents_at_begin_chapter_without_node'} = {
'cmdname' => 'node',
'extra' => {
'associated_section' => {
@@ -261,7 +208,7 @@ $result_nodes{'contents_at_document_begin'} = {
'info' => {}
};
-$result_menus{'contents_at_document_begin'} = {
+$result_menus{'contents_at_begin_chapter_without_node'} = {
'cmdname' => 'node',
'extra' => {
'normalized' => 'Top'
@@ -269,10 +216,10 @@ $result_menus{'contents_at_document_begin'} = {
'info' => {}
};
-$result_errors{'contents_at_document_begin'} = [];
+$result_errors{'contents_at_begin_chapter_without_node'} = [];
-$result_floats{'contents_at_document_begin'} = {};
+$result_floats{'contents_at_begin_chapter_without_node'} = {};
1;
diff --git a/tp/t/results/moresectioning/more_sections_than_nodes.pl
b/tp/t/results/moresectioning/more_sections_than_nodes.pl
index 7975ded006..5d7517a5e7 100644
--- a/tp/t/results/moresectioning/more_sections_than_nodes.pl
+++ b/tp/t/results/moresectioning/more_sections_than_nodes.pl
@@ -1908,9 +1908,9 @@ td.name-direction-about {text-align:center}
<td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h1 class="appendix">Appendix A appendix</h1>
+<hr style="height: 6px;">
</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>
diff --git a/tp/tests/contents/contents_at_begin.texi
b/tp/tests/contents/contents_at_begin.texi
deleted file mode 100644
index 734f0a727f..0000000000
--- a/tp/tests/contents/contents_at_begin.texi
+++ /dev/null
@@ -1,21 +0,0 @@
-\input texinfo @c -*-texinfo-*-
-
-@setfilename contents_at_begin.info
-
-@contents
-
-@node Top
-@top Contents at beginning
-
-Content at the beginning.
-
-@menu
-* chapter::
-@end menu
-
-@node chapter
-@chapter Chapter 1
-
-The chapter
-
-@bye
diff --git a/tp/tests/contents/list-of-tests b/tp/tests/contents/list-of-tests
index 8a1897f325..e8842dfb9b 100644
--- a/tp/tests/contents/list-of-tests
+++ b/tp/tests/contents/list-of-tests
@@ -1,4 +1,3 @@
-contents_at_begin contents_at_begin.texi
contents_at_end contents_at_end.texi
contents_in_middle_chapter contents_in_middle_chapter.texi
contents_in_middle_section contents_in_middle_section.texi
@@ -10,7 +9,6 @@ no_content no_content.texi
no_content_do_contents no_content.texi -c 'contents 1'
no_content_setcatpage no_content_setcatpage.texi
no_content_setcatpage_do_contents no_content_setcatpage.texi -c 'contents 1'
-contents_at_begin_inline contents_at_begin.texi -c 'CONTENTS_OUTPUT_LOCATION
inline'
contents_at_end_inline contents_at_end.texi -c 'CONTENTS_OUTPUT_LOCATION
inline'
contents_in_middle_chapter_inline contents_in_middle_chapter.texi -c
'CONTENTS_OUTPUT_LOCATION inline'
contents_in_middle_section_inline contents_in_middle_section.texi -c
'CONTENTS_OUTPUT_LOCATION inline'
@@ -30,7 +28,6 @@ double_contents_after_title_book_chapter double_contents.texi
--init book.pm --s
contents_and_parts contents_and_parts.texi
-contents_at_begin_info contents_at_begin.texi --info
contents_at_end_info contents_at_end.texi --info
contents_in_middle_chapter_info contents_in_middle_chapter.texi --info
contents_in_middle_section_info contents_in_middle_section.texi --info
diff --git a/tp/tests/contents/res_parser/contents_at_begin/contents_at_begin.1
b/tp/tests/contents/res_parser/contents_at_begin/contents_at_begin.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/tp/tests/contents/res_parser/contents_at_begin/contents_at_begin.2
b/tp/tests/contents/res_parser/contents_at_begin/contents_at_begin.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/contents_at_begin/contents_at_begin.html
b/tp/tests/contents/res_parser/contents_at_begin/contents_at_begin.html
deleted file mode 100644
index 64516658bc..0000000000
--- a/tp/tests/contents/res_parser/contents_at_begin/contents_at_begin.html
+++ /dev/null
@@ -1,205 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Contents at beginning</title>
-
-<meta name="description" content="Contents at beginning">
-<meta name="keywords" content="Contents at beginning">
-<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="Contents-at-beginning">Contents at beginning</h1>
-
-<p>Content at the beginning.
-</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>[ > ]</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>
-<hr style="height: 6px;">
-</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></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/contents_at_begin_info/contents_at_begin.1
b/tp/tests/contents/res_parser/contents_at_begin_info/contents_at_begin.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/contents_at_begin_info/contents_at_begin.2
b/tp/tests/contents/res_parser/contents_at_begin_info/contents_at_begin.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/contents_at_begin_info/contents_at_begin.info
b/tp/tests/contents/res_parser/contents_at_begin_info/contents_at_begin.info
deleted file mode 100644
index 83df68f9de..0000000000
--- a/tp/tests/contents/res_parser/contents_at_begin_info/contents_at_begin.info
+++ /dev/null
@@ -1,35 +0,0 @@
-This is contents_at_begin.info, produced by texi2any version from
-contents_at_begin.texi.
-
-
-File: contents_at_begin.info, Node: Top, Next: chapter, Up: (dir)
-
-Contents at beginning
-*********************
-
-Content at the beginning.
-
-* Menu:
-
-* chapter::
-
-
-File: contents_at_begin.info, Node: chapter, Prev: Top, Up: Top
-
-1 Chapter 1
-***********
-
-The chapter
-
-
-
-Tag Table:
-Node: Top91
-Node: chapter257
-
-End Tag Table
-
-
-Local Variables:
-coding: utf-8
-End:
diff --git
a/tp/tests/contents/res_parser/contents_at_begin_inline/contents_at_begin.1
b/tp/tests/contents/res_parser/contents_at_begin_inline/contents_at_begin.1
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/contents_at_begin_inline/contents_at_begin.2
b/tp/tests/contents/res_parser/contents_at_begin_inline/contents_at_begin.2
deleted file mode 100644
index e69de29bb2..0000000000
diff --git
a/tp/tests/contents/res_parser/contents_at_begin_inline/contents_at_begin.html
b/tp/tests/contents/res_parser/contents_at_begin_inline/contents_at_begin.html
deleted file mode 100644
index 8c2dff92b9..0000000000
---
a/tp/tests/contents/res_parser/contents_at_begin_inline/contents_at_begin.html
+++ /dev/null
@@ -1,199 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Contents at beginning</title>
-
-<meta name="description" content="Contents at beginning">
-<meta name="keywords" content="Contents at beginning">
-<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></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="Contents-at-beginning">Contents at beginning</h1>
-
-<p>Content at the beginning.
-</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>[ > ]</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>
-<hr style="height: 6px;">
-</div>
-</div>
-<div class="element-about" id="SEC_About">
-<table class="nav-panel" cellpadding="1" cellspacing="1" border="0">
-<tr><td>[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
-<td>[<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/test_scripts/contents_contents_at_begin.sh
b/tp/tests/test_scripts/contents_contents_at_begin.sh
deleted file mode 100755
index 3527ac05ad..0000000000
--- a/tp/tests/test_scripts/contents_contents_at_begin.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-# This file generated by maintain/regenerate_cmd_tests.sh
-
-if test z"$srcdir" = "z"; then
- srcdir=.
-fi
-
-one_test_logs_dir=test_log
-
-
-dir=contents
-name='contents_at_begin'
-mkdir -p $dir
-
-"$srcdir"/run_parser_all.sh -dir $dir $name
-exit_status=$?
-cat $dir/$one_test_logs_dir/$name.log
-exit $exit_status
-
diff --git a/tp/tests/test_scripts/contents_contents_at_begin_info.sh
b/tp/tests/test_scripts/contents_contents_at_begin_info.sh
deleted file mode 100755
index 86cb76896b..0000000000
--- a/tp/tests/test_scripts/contents_contents_at_begin_info.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-# This file generated by maintain/regenerate_cmd_tests.sh
-
-if test z"$srcdir" = "z"; then
- srcdir=.
-fi
-
-one_test_logs_dir=test_log
-
-
-dir=contents
-name='contents_at_begin_info'
-mkdir -p $dir
-
-"$srcdir"/run_parser_all.sh -dir $dir $name
-exit_status=$?
-cat $dir/$one_test_logs_dir/$name.log
-exit $exit_status
-
diff --git a/tp/tests/test_scripts/contents_contents_at_begin_inline.sh
b/tp/tests/test_scripts/contents_contents_at_begin_inline.sh
deleted file mode 100755
index 30bff078bf..0000000000
--- a/tp/tests/test_scripts/contents_contents_at_begin_inline.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-# This file generated by maintain/regenerate_cmd_tests.sh
-
-if test z"$srcdir" = "z"; then
- srcdir=.
-fi
-
-one_test_logs_dir=test_log
-
-
-dir=contents
-name='contents_at_begin_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
-
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/HTML.pm (output, _html_set_pages_files): set element units next and prev in output and not in _html_set_pages_files, in order to do it even if th efile is not set.,
Patrice Dumas <=