[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_v
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_value_command) (commands_internal_conversion_table): implement convert_value_command in C. |
Date: |
Fri, 22 Dec 2023 04:48:25 -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 929fda3c4d * tp/Texinfo/XS/convert/convert_html.c
(convert_value_command) (commands_internal_conversion_table): implement
convert_value_command in C.
929fda3c4d is described below
commit 929fda3c4df0b1375b757c89007997a896d792f3
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 22 10:48:16 2023 +0100
* tp/Texinfo/XS/convert/convert_html.c (convert_value_command)
(commands_internal_conversion_table): implement convert_value_command
in C.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/convert/convert_html.c | 28 ++++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index b69976e673..efb4981900 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-12-22 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/convert/convert_html.c (convert_value_command)
+ (commands_internal_conversion_table): implement convert_value_command
+ in C.
+
2023-12-22 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/HTML.pm (%style_commands_formatting): do not put
diff --git a/tp/Texinfo/XS/convert/convert_html.c
b/tp/Texinfo/XS/convert/convert_html.c
index ec24e06dcb..211ad79dfc 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -8132,6 +8132,33 @@ convert_w_command (CONVERTER *self, const enum
command_id cmd,
}
}
+void
+convert_value_command (CONVERTER *self, const enum command_id cmd,
+ const ELEMENT *element,
+ const HTML_ARGS_FORMATTED *args_formatted,
+ const char *content, TEXT *result)
+{
+ ELEMENT *tree;
+ ELEMENT *value_text = new_element (ET_NONE);
+ NAMED_STRING_ELEMENT_LIST *substrings = new_named_string_element_list ();
+
+ text_append (&value_text->text,
+ args_formatted->args[0].formatted[AFT_type_monospacestring]);
+ add_element_to_named_string_element_list (substrings,
+ "value", value_text);
+
+ tree = html_gdt_tree ("@{No value for `{value}'@}", self->document,
+ self, substrings, 0, 0);
+
+ add_to_element_list (&self->tree_to_build, tree);
+ convert_to_html_internal (self, tree, result, 0);
+ remove_element_from_list (&self->tree_to_build, tree);
+
+ destroy_element_and_children (tree);
+
+ destroy_named_string_element_list (substrings);
+}
+
void
convert_indicateurl_command (CONVERTER *self, const enum command_id cmd,
const ELEMENT *element,
@@ -9616,6 +9643,7 @@ convert_contents_command (CONVERTER *self, const enum
command_id cmd,
static COMMAND_INTERNAL_CONVERSION commands_internal_conversion_table[] = {
{CM_w, &convert_w_command},
{CM_today, &convert_today_command},
+ {CM_value, &convert_value_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_value_command) (commands_internal_conversion_table): implement convert_value_command in C.,
Patrice Dumas <=