[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Wed, 25 Dec 2024 12:42:17 -0500 (EST) |
branch: master
commit 91a59eccffa4dab22ec860443082be091700e873
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Dec 25 18:42:09 2024 +0100
* tp/Texinfo/XS/texi2any.c (main): reset the format_specification to
the converted format format_specification if the output format is
different from the converted format.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/texi2any.c | 13 ++++++++++++-
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b494bb185f..5f21e79f1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-25 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/texi2any.c (main): reset the format_specification to
+ the converted format format_specification if the output format is
+ different from the converted format.
+
2024-12-25 Patrice Dumas <pertusus@free.fr>
* tp/maintain/change_perl_modules_version.sh,
diff --git a/tp/Texinfo/XS/texi2any.c b/tp/Texinfo/XS/texi2any.c
index b069246ba7..68c27234f5 100644
--- a/tp/Texinfo/XS/texi2any.c
+++ b/tp/Texinfo/XS/texi2any.c
@@ -1745,7 +1745,18 @@ main (int argc, char *argv[], char *env[])
&internal_extension_dirs);
if (format_specification->converted_format)
- converted_format = format_specification->converted_format;
+ {
+ converted_format = format_specification->converted_format;
+ /* reset the format_specification to the converted_format specification */
+ for (i = 0; formats_table[i].name; i++)
+ {
+ if (!strcmp (formats_table[i].name, converted_format))
+ {
+ format_specification = &formats_table[i];
+ break;
+ }
+ }
+ }
else
converted_format = output_format;