[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_i
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_insertcopying_command) (commands_internal_conversion_table): implement convert_insertcopying_command. |
Date: |
Sun, 31 Dec 2023 05:52:31 -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 b1a29e26f5 * tp/Texinfo/XS/convert/convert_html.c
(convert_insertcopying_command) (commands_internal_conversion_table): implement
convert_insertcopying_command.
b1a29e26f5 is described below
commit b1a29e26f5e57889fc46f2e75d9f64199b1cb5b1
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Dec 31 11:52:31 2023 +0100
* tp/Texinfo/XS/convert/convert_html.c (convert_insertcopying_command)
(commands_internal_conversion_table): implement
convert_insertcopying_command.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/convert/convert_html.c | 18 ++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9822327003..7f7615ddb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-12-31 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/convert/convert_html.c (convert_insertcopying_command)
+ (commands_internal_conversion_table): implement
+ convert_insertcopying_command.
+
2023-12-31 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/convert/convert_html.c (convert_title_command)
diff --git a/tp/Texinfo/XS/convert/convert_html.c
b/tp/Texinfo/XS/convert/convert_html.c
index 82d240edba..3afd5a4eee 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -10448,6 +10448,22 @@ convert_subtitle_command (CONVERTER *self, const enum
command_id cmd,
destroy_strings_list (classes);
}
+void
+convert_insertcopying_command (CONVERTER *self, const enum command_id cmd,
+ const ELEMENT *element,
+ const HTML_ARGS_FORMATTED *args_formatted,
+ const char *content, TEXT *result)
+{
+ if (self->document->global_commands->copying)
+ {
+ ELEMENT *tmp = new_element (ET_NONE);
+ tmp->contents = self->document->global_commands->copying->contents;
+ convert_to_html_internal (self, tmp, result, "convert insertcopying");
+ tmp->contents.list = 0;
+ destroy_element (tmp);
+ }
+}
+
void
convert_xref_commands (CONVERTER *self, const enum command_id cmd,
const ELEMENT *element,
@@ -11314,6 +11330,8 @@ static COMMAND_INTERNAL_CONVERSION
commands_internal_conversion_table[] = {
{CM_title, &convert_title_command},
{CM_subtitle, &convert_subtitle_command},
+ {CM_insertcopying, &convert_insertcopying_command},
+
{CM_contents, &convert_contents_command},
{CM_shortcontents, &convert_contents_command},
{CM_summarycontents, &convert_contents_command},
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_insertcopying_command) (commands_internal_conversion_table): implement convert_insertcopying_command.,
Patrice Dumas <=