[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Thu, 14 Dec 2023 16:39:30 -0500 (EST) |
branch: master
commit 1297abcdc46ffe0681e8226bc55f0e84e2217999
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Dec 14 17:20:10 2023 +0100
* tp/Texinfo/Convert/HTML.pm (_initialize_output_state)
(converter_initialize): move document_context and multiple_pass
initialization to _initialize_output_state.
---
ChangeLog | 8 +++++++-
tp/Texinfo/Convert/HTML.pm | 6 +++---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6a9aae0d72..5bf46149ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2023-12-13 Patrice Dumas <pertusus@free.fr>
+2023-12-14 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/HTML.pm (_initialize_output_state)
+ (converter_initialize): move document_context and multiple_pass
+ initialization to _initialize_output_state.
+
+2023-12-14 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/main/convert_utils.c (add_heading_number): implement
the case of translations, with a converter with translations support
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index b0874ebdd3..ee86b6b2fb 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -8676,9 +8676,6 @@ sub converter_initialize($)
= $customized_special_unit_body->{$special_unit_variety};
}
- $self->{'document_context'} = [];
- $self->{'multiple_pass'} = [];
-
# TODO warn if the split specification is not one known? The main
# program warns if the specific command line option value is not known.
if ($self->get_conf('SPLIT') and $self->get_conf('SPLIT') ne 'chapter'
@@ -11225,6 +11222,9 @@ sub _initialize_output_state($$)
# the perl state similarly with what is done in that function.
_XS_initialize_output_state($self, $context.'C');
+ $self->{'document_context'} = [];
+ $self->{'multiple_pass'} = [];
+
# for diverse API used in conversion
$self->{'shared_conversion_state'} = {};
$self->{'shared_conversion_state_integers'} = {};
- Prev by Date:
[no subject]
- Next by Date:
branch master updated: * tp/Texinfo/Convert/HTML.pm (%XS_conversion_overrides) (_initialize_output_state, _initialize_XS_NonXS_output_state): add _initialize_XS_NonXS_output_state, which sets up the states that need to be set up both in perl and XS, and calls _initialize_output_state, now directly overriden, that sets up the states that only need to be setup if there is no XS.
- Previous by thread:
[no subject]
- Next by thread:
branch master updated: * tp/Texinfo/Convert/HTML.pm (%XS_conversion_overrides) (_initialize_output_state, _initialize_XS_NonXS_output_state): add _initialize_XS_NonXS_output_state, which sets up the states that need to be set up both in perl and XS, and calls _initialize_output_state, now directly overriden, that sets up the states that only need to be setup if there is no XS.
- Index(es):