[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/HTML.pm (output): use the la
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/HTML.pm (output): use the last value in preamble for documentlanguage to set the body element lang attribute. |
Date: |
Sun, 09 Jan 2022 17:44:48 -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 855562a26b * tp/Texinfo/Convert/HTML.pm (output): use the last value
in preamble for documentlanguage to set the body element lang attribute.
855562a26b is described below
commit 855562a26b571905506f44779e8bb5fb875e0a14
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Jan 9 23:44:37 2022 +0100
* tp/Texinfo/Convert/HTML.pm (output): use the last value in
preamble for documentlanguage to set the body element lang
attribute.
---
ChangeLog | 6 ++++++
tp/Texinfo/Convert/HTML.pm | 3 +--
tp/t/results/html_tests/itemize_arguments/res_html/index.html | 2 +-
.../itemize_arguments_enable_encoding/res_html/index.html | 2 +-
tp/t/results/init_files_tests/modified_translation.pl | 2 +-
.../res_html/multiple_lang_chapters.html | 2 +-
6 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7b62f35d61..a36ecf07e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-01-09 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/HTML.pm (output): use the last value in
+ preamble for documentlanguage to set the body element lang
+ attribute.
+
2022-01-09 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/HTML.pm (output): use the last value in
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index a15463dbbd..c34b93ebdb 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -8517,12 +8517,11 @@ sub output($$)
my $structure_status = $self->run_stage_handlers($root, 'structure');
return undef unless($structure_status);
- $self->set_global_document_commands('preamble_or_first',
['documentlanguage']);
+ $self->set_global_document_commands('preamble', ['documentlanguage']);
$self->set_conf('BODYTEXT',
'lang="' . $self->get_conf('documentlanguage') . '"');
- $self->set_global_document_commands('preamble', ['documentlanguage']);
# prepare title. fulltitle uses more possibility than simpletitle for
# title, including @-commands found in @titlepage only. Therefore
# simpletitle is more in line with what makeinfo in C does.
diff --git a/tp/t/results/html_tests/itemize_arguments/res_html/index.html
b/tp/t/results/html_tests/itemize_arguments/res_html/index.html
index 894bf30456..a208189e47 100644
--- a/tp/t/results/html_tests/itemize_arguments/res_html/index.html
+++ b/tp/t/results/html_tests/itemize_arguments/res_html/index.html
@@ -26,7 +26,7 @@ ul.mark-tie {list-style-type: " "}
</head>
-<body lang="fr">
+<body lang="en">
<ul style="list-style-type: '\2014 '">
<li>item —
diff --git
a/tp/t/results/html_tests/itemize_arguments_enable_encoding/res_html/index.html
b/tp/t/results/html_tests/itemize_arguments_enable_encoding/res_html/index.html
index 6ec0db0bb3..31cf32d297 100644
---
a/tp/t/results/html_tests/itemize_arguments_enable_encoding/res_html/index.html
+++
b/tp/t/results/html_tests/itemize_arguments_enable_encoding/res_html/index.html
@@ -26,7 +26,7 @@ ul.mark-tie {list-style-type: " "}
</head>
-<body lang="fr">
+<body lang="en">
<ul style="list-style-type: '\2014 '">
<li>item —
diff --git a/tp/t/results/init_files_tests/modified_translation.pl
b/tp/t/results/init_files_tests/modified_translation.pl
index 4dfb03ac2b..e44836b7f5 100644
--- a/tp/t/results/init_files_tests/modified_translation.pl
+++ b/tp/t/results/init_files_tests/modified_translation.pl
@@ -275,7 +275,7 @@ kbd {font-style: oblique}
</head>
-<body lang="fr">
+<body lang="en">
<p>Special Form.
</p>
diff --git
a/tp/t/results/languages/multiple_lang_chapters_texi2html/res_html/multiple_lang_chapters.html
b/tp/t/results/languages/multiple_lang_chapters_texi2html/res_html/multiple_lang_chapters.html
index 18ecdf7e71..103f09d7d4 100644
---
a/tp/t/results/languages/multiple_lang_chapters_texi2html/res_html/multiple_lang_chapters.html
+++
b/tp/t/results/languages/multiple_lang_chapters_texi2html/res_html/multiple_lang_chapters.html
@@ -23,7 +23,7 @@ span:hover a.copiable-anchor {visibility: visible}
</head>
-<body lang="ja">
+<body lang="en">
<div class="top" id="Top">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/HTML.pm (output): use the last value in preamble for documentlanguage to set the body element lang attribute.,
Patrice Dumas <=