[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_U
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_U_command) (commands_internal_conversion_table): implement convert_U_command. |
Date: |
Sat, 30 Dec 2023 13:15:33 -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 08de053520 * tp/Texinfo/XS/convert/convert_html.c (convert_U_command)
(commands_internal_conversion_table): implement convert_U_command.
08de053520 is described below
commit 08de0535206e247aabb7322c21d12d26e2c89d3a
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Dec 30 19:15:32 2023 +0100
* tp/Texinfo/XS/convert/convert_html.c (convert_U_command)
(commands_internal_conversion_table): implement convert_U_command.
---
ChangeLog | 5 +++++
tp/Texinfo/XS/convert/convert_html.c | 16 ++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 4ec76121e9..46216baf86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-12-30 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/convert/convert_html.c (convert_U_command)
+ (commands_internal_conversion_table): implement convert_U_command.
+
2023-12-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl (convert_to_info): If not outputting to
diff --git a/tp/Texinfo/XS/convert/convert_html.c
b/tp/Texinfo/XS/convert/convert_html.c
index 5a0642faa4..9dd9561a2f 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -9211,6 +9211,21 @@ convert_titlefont_command (CONVERTER *self, const enum
command_id cmd,
}
}
+void
+convert_U_command (CONVERTER *self, const enum command_id cmd,
+ const ELEMENT *element,
+ const HTML_ARGS_FORMATTED *args_formatted,
+ const char *content, TEXT *result)
+{
+ if (args_formatted && args_formatted->number > 0
+ && args_formatted->args[0].formatted[AFT_type_normal]
+ && strlen (args_formatted->args[0].formatted[AFT_type_normal]))
+ {
+ text_printf (result, "&#x%s;",
+ args_formatted->args[0].formatted[AFT_type_normal]);
+ }
+}
+
void
convert_raw_command (CONVERTER *self, const enum command_id cmd,
const ELEMENT *element,
@@ -10671,6 +10686,7 @@ static COMMAND_INTERNAL_CONVERSION
commands_internal_conversion_table[] = {
{CM_image, &convert_image_command},
{CM_math, &convert_math_command},
{CM_titlefont, &convert_titlefont_command},
+ {CM_U, &convert_U_command},
/* note that if indicateurl had been in self->style_formatted_cmd this
would have prevented indicateurl to be associated to
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_U_command) (commands_internal_conversion_table): implement convert_U_command.,
Patrice Dumas <=