texinfo-commits
[Top][All Lists]
Advanced

[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_verbatiminclude_command, commands_internal_conversion_table): implement convert_verbatiminclude_command.
Date: Sat, 30 Dec 2023 19:23:27 -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 043648408a * tp/Texinfo/XS/convert/convert_html.c 
(convert_verbatiminclude_command, commands_internal_conversion_table): 
implement convert_verbatiminclude_command.
043648408a is described below

commit 043648408ae2cb702a74587a689f2483a7942c9b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Dec 31 01:23:25 2023 +0100

    * tp/Texinfo/XS/convert/convert_html.c
    (convert_verbatiminclude_command, commands_internal_conversion_table):
    implement convert_verbatiminclude_command.
---
 ChangeLog                            |  8 +++++++-
 tp/Texinfo/XS/convert/convert_html.c | 23 +++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index fa5409e499..c4b0089464 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
+2023-12-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/convert_html.c
+       (convert_verbatiminclude_command, commands_internal_conversion_table):
+       implement convert_verbatiminclude_command.
+
 2023-12-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/convert_html.c (convert_displaymath_command)
-       'commands_internal_conversion_table): implement
+       (commands_internal_conversion_table): implement
        convert_displaymath_command.
 
 2023-12-30  Patrice Dumas  <pertusus@free.fr>
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index ed1cce58e7..ed54b2f8ac 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -10157,6 +10157,27 @@ convert_displaymath_command (CONVERTER *self, const 
enum command_id cmd,
   free (attribute_class);
 }
 
+void
+convert_verbatiminclude_command (CONVERTER *self, const enum command_id cmd,
+                    const ELEMENT *element,
+                    const HTML_ARGS_FORMATTED *args_formatted,
+                    const char *content, TEXT *result)
+{
+  ELEMENT *verbatim_include_verbatim
+    = expand_verbatiminclude (&self->error_messages, self->conf,
+                              self->document->global_info, element);
+
+  if (verbatim_include_verbatim)
+    {
+      add_to_element_list (&self->tree_to_build, verbatim_include_verbatim);
+      convert_to_html_internal (self, verbatim_include_verbatim,
+                                result, "convert verbatiminclude");
+      remove_element_from_list (&self->tree_to_build,
+                                verbatim_include_verbatim);
+      destroy_element_and_children (verbatim_include_verbatim);
+    }
+}
+
 void
 convert_xref_commands (CONVERTER *self, const enum command_id cmd,
                     const ELEMENT *element,
@@ -11011,6 +11032,8 @@ static COMMAND_INTERNAL_CONVERSION 
commands_internal_conversion_table[] = {
   {CM_verbatim, &convert_verbatim_command},
   {CM_displaymath, &convert_displaymath_command},
 
+  {CM_verbatiminclude, &convert_verbatiminclude_command},
+
   {CM_contents, &convert_contents_command},
   {CM_shortcontents, &convert_contents_command},
   {CM_summarycontents, &convert_contents_command},



reply via email to

[Prev in Thread] Current Thread [Next in Thread]