texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Sat, 30 Dec 2023 10:21:07 -0500 (EST)

branch: master
commit 768a13ff44ef9ef32adf2a5a0f4a0362a5ca56b0
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Dec 30 16:21:00 2023 +0100

    * tp/Texinfo/XS/convert/convert_html.c
    (default_format_special_body_shortcontents)
    (special_unit_body_internal_formatting_table): implement
    special_body_shortcontents.
---
 ChangeLog                            |  7 +++++++
 tp/Texinfo/XS/convert/convert_html.c | 13 +++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index cbd53b560c..33bb91a55d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-12-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/convert_html.c
+       (default_format_special_body_shortcontents)
+       (special_unit_body_internal_formatting_table): implement
+       special_body_shortcontents.
+
 2023-12-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/convert_html.c
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index 0980f7e4bf..e8bd79af0e 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -10961,9 +10961,22 @@ default_format_special_body_contents (CONVERTER *self,
   free (table_of_contents);
 }
 
+void
+default_format_special_body_shortcontents (CONVERTER *self,
+                               const size_t special_unit_number,
+                               const char *special_unit_variety,
+                               const OUTPUT_UNIT *output_unit,
+                               TEXT *result)
+{
+  char *shortcontents = format_contents (self, CM_shortcontents, 0, 0);
+  text_append (result, shortcontents);
+  free (shortcontents);
+}
+
 static SPECIAL_UNIT_BODY_INTERNAL_CONVERSION
    special_unit_body_internal_formatting_table[] = {
   {"contents", &default_format_special_body_contents},
+  {"shortcontents", &default_format_special_body_shortcontents},
   {0, 0},
 };
 



reply via email to

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