[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Makefile.tres, tp/t/html_tests.t (empty_node
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Makefile.tres, tp/t/html_tests.t (empty_node_in_html_title_no_sec_name, empty_chapter_in_html_title) (empty_chapter_in_html_title_no_node_no_use_nodes): tests with empty node/chapter in html <title> formatting. |
Date: |
Tue, 23 Jan 2024 05:43:44 -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 b317c6e491 * tp/Makefile.tres, tp/t/html_tests.t
(empty_node_in_html_title_no_sec_name, empty_chapter_in_html_title)
(empty_chapter_in_html_title_no_node_no_use_nodes): tests with empty
node/chapter in html <title> formatting.
b317c6e491 is described below
commit b317c6e49179a45fbf26a87983691e8fb7e0aeb0
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Jan 23 11:43:32 2024 +0100
* tp/Makefile.tres, tp/t/html_tests.t
(empty_node_in_html_title_no_sec_name, empty_chapter_in_html_title)
(empty_chapter_in_html_title_no_node_no_use_nodes): tests with empty
node/chapter in html <title> formatting.
---
ChangeLog | 7 +
tp/Makefile.tres | 6 +
tp/Texinfo/Convert/HTML.pm | 1 +
tp/Texinfo/XS/convert/convert_html.c | 1 +
tp/t/html_tests.t | 23 +-
.../html_tests/empty_chapter_in_html_title.pl | 264 +++++++++++++++++++++
.../empty_chapter_in_html_title/res_html/chap.html | 37 +++
.../res_html/index.html | 42 ++++
...y_chapter_in_html_title_no_node_no_use_nodes.pl | 199 ++++++++++++++++
.../res_html/.html | 35 +++
.../res_html/index.html | 41 ++++
.../empty_node_in_html_title_no_sec_name.pl | 249 +++++++++++++++++++
.../res_html/index.html | 46 ++++
.../res_html/unknown_node.html | 43 ++++
14 files changed, 993 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index f82a3c669e..04859ca57f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-01-22 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Makefile.tres, tp/t/html_tests.t
+ (empty_node_in_html_title_no_sec_name, empty_chapter_in_html_title)
+ (empty_chapter_in_html_title_no_node_no_use_nodes): tests with empty
+ node/chapter in html <title> formatting.
+
2024-01-22 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/HTML.pm (_mini_toc),
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index 2a129aa6b3..71bff4cf88 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -619,8 +619,14 @@ test_files_generated_list =
$(test_tap_files_generated_list) \
t/results/html_tests/double_contents_separate_element_nodes/res_html \
t/results/html_tests/double_contents_separate_element_section.pl \
t/results/html_tests/double_contents_separate_element_section/res_html \
+ t/results/html_tests/empty_chapter_in_html_title.pl \
+ t/results/html_tests/empty_chapter_in_html_title/res_html \
+ t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes.pl \
+
t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes/res_html \
t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl \
t/results/html_tests/empty_lines_at_beginning_no_setfilename_no_element.pl \
+ t/results/html_tests/empty_node_in_html_title_no_sec_name.pl \
+ t/results/html_tests/empty_node_in_html_title_no_sec_name/res_html \
t/results/html_tests/empty_titlefont.pl \
t/results/html_tests/file_name_case_insensitive_conflict_node.pl \
t/results/html_tests/file_name_case_insensitive_conflict_node/res_html \
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 5c054d984e..13d1094f72 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -10908,6 +10908,7 @@ sub _file_header_information($$;$)
and $command->{'extra'}->{'associated_section'}->{'args'}->[0]) {
$element_tree =
$command->{'extra'}->{'associated_section'}->{'args'}->[0];
} else {
+ # this should not happen, as the command_string should be empty already
$element_tree = $self->command_tree($command);
}
# TRANSLATORS: sectioning element title for the page header
diff --git a/tp/Texinfo/XS/convert/convert_html.c
b/tp/Texinfo/XS/convert/convert_html.c
index 574477d0fd..58d22fe5c8 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -6904,6 +6904,7 @@ file_header_information (CONVERTER *self, const ELEMENT
*command,
if (!command_tree)
{
+ /* this should not happen, as the command_string should be empty already */
TREE_ADDED_ELEMENTS *element_tree
= html_command_tree (self, command, 0);
command_tree = element_tree->tree;
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index 11b3b93bf5..5257835670 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -880,8 +880,29 @@ my $css_init_file_texinfo = '@node Top
@titlefont{in a new heading}
';
-# test that the node name that goes in the redirection file is reproducible.
my @file_tests = (
+['empty_node_in_html_title_no_sec_name',
+'@node Top
+@top top
+
+@node
+@chapter chap
+', {}, {'SECTION_NAME_IN_TITLE' => 0, 'SPLIT' => 'chapter'}],
+['empty_chapter_in_html_title',
+'@node Top
+@top top
+
+@node chap
+@chapter
+', {}, {'SPLIT' => 'chapter'}],
+# the chapter file is named '.html', which is ok, but no file may be better
+['empty_chapter_in_html_title_no_node_no_use_nodes',
+'@node Top
+@top top
+
+@chapter
+', {}, {'SPLIT' => 'chapter', 'USE_NODES' => 0}],
+# test that the node name that goes in the redirection file is reproducible.
['redirection_same_labels',
'@node Top
@top the top
diff --git a/tp/t/results/html_tests/empty_chapter_in_html_title.pl
b/tp/t/results/html_tests/empty_chapter_in_html_title.pl
new file mode 100644
index 0000000000..f86f87b13e
--- /dev/null
+++ b/tp/t/results/html_tests/empty_chapter_in_html_title.pl
@@ -0,0 +1,264 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors
+ %result_indices %result_sectioning %result_nodes %result_menus
+ %result_floats %result_converted %result_converted_errors
+ %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'empty_chapter_in_html_title'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'type' => 'preamble_before_content'
+ }
+ ],
+ 'type' => 'before_node_section'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'is_target' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 1
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 2
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'chap'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'is_target' => 1,
+ 'normalized' => 'chap'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 4
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'section_number' => '1'
+ },
+ 'source_info' => {
+ 'line_nr' => 5
+ }
+ }
+ ],
+ 'type' => 'document_root'
+};
+
+$result_texis{'empty_chapter_in_html_title'} = '@node Top
+@top top
+
+@node chap
+@chapter
+';
+
+
+$result_texts{'empty_chapter_in_html_title'} = 'top
+***
+
+1
+**
+';
+
+$result_sectioning{'empty_chapter_in_html_title'} = {
+ 'extra' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ },
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chap'
+ }
+ },
+ 'section_directions' => {
+ 'up' => {}
+ },
+ 'section_level' => 1,
+ 'section_number' => '1',
+ 'toplevel_directions' => {
+ 'prev' => {},
+ 'up' => {}
+ }
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'sectioning_root' => {},
+ 'toplevel_directions' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'empty_chapter_in_html_title'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
=
$result_sectioning{'empty_chapter_in_html_title'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_chapter_in_html_title'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'prev'}
=
$result_sectioning{'empty_chapter_in_html_title'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_chapter_in_html_title'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'up'}
=
$result_sectioning{'empty_chapter_in_html_title'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_chapter_in_html_title'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
= $result_sectioning{'empty_chapter_in_html_title'};
+
+$result_nodes{'empty_chapter_in_html_title'} = [
+ {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {}
+ },
+ 'node_directions' => {
+ 'next' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'section_number' => '1'
+ }
+ },
+ 'node_directions' => {
+ 'prev' => {},
+ 'up' => {}
+ },
+ 'normalized' => 'chap'
+ }
+ }
+ },
+ 'normalized' => 'Top'
+ }
+ },
+ {}
+];
+$result_nodes{'empty_chapter_in_html_title'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
= $result_nodes{'empty_chapter_in_html_title'}[0];
+$result_nodes{'empty_chapter_in_html_title'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'up'}
= $result_nodes{'empty_chapter_in_html_title'}[0];
+$result_nodes{'empty_chapter_in_html_title'}[1] =
$result_nodes{'empty_chapter_in_html_title'}[0]{'extra'}{'node_directions'}{'next'};
+
+$result_menus{'empty_chapter_in_html_title'} = [
+ {
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ },
+ {
+ 'extra' => {
+ 'normalized' => 'chap'
+ }
+ }
+];
+
+$result_errors{'empty_chapter_in_html_title'} = [
+ {
+ 'error_line' => 'warning: @chapter missing argument
+',
+ 'line_nr' => 5,
+ 'text' => '@chapter missing argument',
+ 'type' => 'warning'
+ }
+];
+
+
+$result_floats{'empty_chapter_in_html_title'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/empty_chapter_in_html_title/res_html/chap.html
b/tp/t/results/html_tests/empty_chapter_in_html_title/res_html/chap.html
new file mode 100644
index 0000000000..f693bc7196
--- /dev/null
+++ b/tp/t/results/html_tests/empty_chapter_in_html_title/res_html/chap.html
@@ -0,0 +1,37 @@
+<!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>chap (top)</title>
+
+<meta name="description" content="chap (top)">
+<meta name="keywords" content="chap (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html" rel="up" title="Top">
+<link href="index.html" rel="prev" title="Top">
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent" id="chap">
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">top</a>, Up: <a
href="index.html" accesskey="u" rel="up">top</a> </p>
+</div>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">top</a>, Up: <a
href="index.html" accesskey="u" rel="up">top</a> </p>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/empty_chapter_in_html_title/res_html/index.html
b/tp/t/results/html_tests/empty_chapter_in_html_title/res_html/index.html
new file mode 100644
index 0000000000..a15e9b8ffb
--- /dev/null
+++ b/tp/t/results/html_tests/empty_chapter_in_html_title/res_html/index.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Top (top)</title>
+
+<meta name="description" content="Top (top)">
+<meta name="keywords" content="Top (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#Top" rel="start" title="Top">
+<link href="chap.html" rel="next" title="chap">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+</div>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top">
¶</a></span></h1>
+
+<ul class="mini-toc">
+</ul>
+</div>
+<hr>
+<div class="nav-panel">
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes.pl
b/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes.pl
new file mode 100644
index 0000000000..93cbce8cbd
--- /dev/null
+++
b/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes.pl
@@ -0,0 +1,199 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors
+ %result_indices %result_sectioning %result_nodes %result_menus
+ %result_floats %result_converted %result_converted_errors
+ %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'empty_chapter_in_html_title_no_node_no_use_nodes'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'type' => 'preamble_before_content'
+ }
+ ],
+ 'type' => 'before_node_section'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'is_target' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 1
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 2
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'section_number' => '1'
+ },
+ 'source_info' => {
+ 'line_nr' => 4
+ }
+ }
+ ],
+ 'type' => 'document_root'
+};
+
+$result_texis{'empty_chapter_in_html_title_no_node_no_use_nodes'} = '@node Top
+@top top
+
+@chapter
+';
+
+
+$result_texts{'empty_chapter_in_html_title_no_node_no_use_nodes'} = 'top
+***
+
+1
+**
+';
+
+$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'} = {
+ 'extra' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ },
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'section_directions' => {
+ 'up' => {}
+ },
+ 'section_level' => 1,
+ 'section_number' => '1',
+ 'toplevel_directions' => {
+ 'prev' => {},
+ 'up' => {}
+ }
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'sectioning_root' => {},
+ 'toplevel_directions' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
=
$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'prev'}
=
$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'up'}
=
$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
= $result_sectioning{'empty_chapter_in_html_title_no_node_no_use_nodes'};
+
+$result_nodes{'empty_chapter_in_html_title_no_node_no_use_nodes'} = [
+ {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {}
+ },
+ 'normalized' => 'Top'
+ }
+ }
+];
+
+$result_menus{'empty_chapter_in_html_title_no_node_no_use_nodes'} = [
+ {
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ }
+];
+
+$result_errors{'empty_chapter_in_html_title_no_node_no_use_nodes'} = [
+ {
+ 'error_line' => 'warning: @chapter missing argument
+',
+ 'line_nr' => 4,
+ 'text' => '@chapter missing argument',
+ 'type' => 'warning'
+ }
+];
+
+
+$result_floats{'empty_chapter_in_html_title_no_node_no_use_nodes'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes/res_html/.html
b/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes/res_html/.html
new file mode 100644
index 0000000000..ee4cb91090
--- /dev/null
+++
b/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes/res_html/.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="top">
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent">
+<div class="nav-panel">
+<p>
+ Up : <a href="index.html" accesskey="u" rel="up">top</a> </p>
+</div>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+ Up : <a href="index.html" accesskey="u" rel="up">top</a> </p>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes/res_html/index.html
b/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes/res_html/index.html
new file mode 100644
index 0000000000..6588ea0918
--- /dev/null
+++
b/tp/t/results/html_tests/empty_chapter_in_html_title_no_node_no_use_nodes/res_html/index.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#Top" rel="start" title="top">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+</div>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top">
¶</a></span></h1>
+
+<ul class="mini-toc">
+</ul>
+</div>
+<hr>
+<div class="nav-panel">
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name.pl
b/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name.pl
new file mode 100644
index 0000000000..f583c6a35a
--- /dev/null
+++ b/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name.pl
@@ -0,0 +1,249 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors
+ %result_indices %result_sectioning %result_nodes %result_menus
+ %result_floats %result_converted %result_converted_errors
+ %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'empty_node_in_html_title_no_sec_name'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'type' => 'preamble_before_content'
+ }
+ ],
+ 'type' => 'before_node_section'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'is_target' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 1
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 2
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {},
+ 'source_info' => {
+ 'line_nr' => 4
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'chap'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'section_number' => '1'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 5
+ }
+ }
+ ],
+ 'type' => 'document_root'
+};
+
+$result_texis{'empty_node_in_html_title_no_sec_name'} = '@node Top
+@top top
+
+@node
+@chapter chap
+';
+
+
+$result_texts{'empty_node_in_html_title_no_sec_name'} = 'top
+***
+
+1 chap
+******
+';
+
+$result_sectioning{'empty_node_in_html_title_no_sec_name'} = {
+ 'extra' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ },
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {}
+ },
+ 'section_directions' => {
+ 'up' => {}
+ },
+ 'section_level' => 1,
+ 'section_number' => '1',
+ 'toplevel_directions' => {
+ 'prev' => {},
+ 'up' => {}
+ }
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'sectioning_root' => {},
+ 'toplevel_directions' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'empty_node_in_html_title_no_sec_name'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
=
$result_sectioning{'empty_node_in_html_title_no_sec_name'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_node_in_html_title_no_sec_name'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'prev'}
=
$result_sectioning{'empty_node_in_html_title_no_sec_name'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_node_in_html_title_no_sec_name'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'up'}
=
$result_sectioning{'empty_node_in_html_title_no_sec_name'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'empty_node_in_html_title_no_sec_name'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
= $result_sectioning{'empty_node_in_html_title_no_sec_name'};
+
+$result_nodes{'empty_node_in_html_title_no_sec_name'} = [
+ {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {}
+ },
+ 'node_directions' => {
+ 'next' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'section_number' => '1'
+ }
+ },
+ 'node_directions' => {
+ 'prev' => {}
+ }
+ }
+ }
+ },
+ 'normalized' => 'Top'
+ }
+ }
+];
+$result_nodes{'empty_node_in_html_title_no_sec_name'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
= $result_nodes{'empty_node_in_html_title_no_sec_name'}[0];
+
+$result_menus{'empty_node_in_html_title_no_sec_name'} = [
+ {
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ }
+];
+
+$result_errors{'empty_node_in_html_title_no_sec_name'} = [
+ {
+ 'error_line' => 'empty argument in @node
+',
+ 'line_nr' => 4,
+ 'text' => 'empty argument in @node',
+ 'type' => 'error'
+ }
+];
+
+
+$result_floats{'empty_node_in_html_title_no_sec_name'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name/res_html/index.html
b/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name/res_html/index.html
new file mode 100644
index 0000000000..74733f89bf
--- /dev/null
+++
b/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name/res_html/index.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Top (top)</title>
+
+<meta name="description" content="Top (top)">
+<meta name="keywords" content="Top (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#Top" rel="start" title="Top">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: chap </p>
+</div>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top">
¶</a></span></h1>
+
+<ul class="mini-toc">
+<li>chap</li>
+</ul>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Next: chap </p>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name/res_html/unknown_node.html
b/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name/res_html/unknown_node.html
new file mode 100644
index 0000000000..056a3ba0d7
--- /dev/null
+++
b/tp/t/results/html_tests/empty_node_in_html_title_no_sec_name/res_html/unknown_node.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html" rel="prev" title="Top">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent">
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">top</a> </p>
+</div>
+<h2 class="chapter" id="chap"><span>1 chap<a class="copiable-link"
href="#chap"> ¶</a></span></h2>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">top</a> </p>
+</div>
+
+
+
+</body>
+</html>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Makefile.tres, tp/t/html_tests.t (empty_node_in_html_title_no_sec_name, empty_chapter_in_html_title) (empty_chapter_in_html_title_no_node_no_use_nodes): tests with empty node/chapter in html <title> formatting.,
Patrice Dumas <=