[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Mon, 23 Dec 2024 18:10:12 -0500 (EST) |
branch: master
commit b19b656c4a1335d09720baed6e12faeb1da1d055
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Dec 8 23:57:26 2024 +0100
* tp/Texinfo/XS/teximakehtml.c (main): copy the parser customizations
set into the parser options.
---
ChangeLog | 5 +++++
tp/Texinfo/XS/teximakehtml.c | 15 ++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 042ca9a5b5..c6e0fb3fa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-08 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/teximakehtml.c (main): copy the parser customizations
+ set into the parser options.
+
2024-12-08 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/converters_defaults.txt,
diff --git a/tp/Texinfo/XS/teximakehtml.c b/tp/Texinfo/XS/teximakehtml.c
index 5b4359fcf9..7cebb619d2 100644
--- a/tp/Texinfo/XS/teximakehtml.c
+++ b/tp/Texinfo/XS/teximakehtml.c
@@ -280,6 +280,7 @@ main (int argc, char *argv[])
OPTION *no_warn_option;
int no_warn = 0;
int test_mode_set = 0;
+ size_t i;
/*
const char *texinfo_text;
@@ -460,8 +461,20 @@ main (int argc, char *argv[])
destroy_converter_initialization_info (format_defaults);
- /* TODO add program_options filtering in only parser options */
initialize_options_list (&parser_options);
+ /* Copy relevant customization variables into the parser options. */
+ for (i = 0; i < TXI_OPTIONS_NR; i++)
+ {
+ OPTION *parser_option = parser_options.sorted_options[i];
+ if (parser_option->flags & OF_parser_option)
+ {
+ OPTION *option = get_conf (parser_option->number);
+ if (option)
+ {
+ copy_option (parser_option, option);
+ }
+ }
+ }
/*
add_option_value (&parser_options, "DEBUG", 1, 0);
*/