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_p


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/convert_html.c (convert_printindex_command): create entry_ref_tree only after making sure that the entry is formatted.
Date: Fri, 05 Jan 2024 09:40:43 -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 b4781d53ec * tp/Texinfo/XS/convert/convert_html.c 
(convert_printindex_command): create entry_ref_tree only after making sure that 
the entry is formatted.
b4781d53ec is described below

commit b4781d53eca6ac11d2157e1a5666f28c2a46f2e8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Jan 5 15:40:41 2024 +0100

    * tp/Texinfo/XS/convert/convert_html.c (convert_printindex_command):
    create entry_ref_tree only after making sure that the entry is
    formatted.
---
 ChangeLog                            | 6 ++++++
 tp/Texinfo/XS/convert/convert_html.c | 5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f67b369c59..51985042a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-01-05  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/convert_html.c (convert_printindex_command):
+       create entry_ref_tree only after making sure that the entry is
+       formatted.
+
 2024-01-05  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/convert_html.c (convert_float_command)
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index 095a3b65f9..c09f43b802 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -11958,7 +11958,7 @@ convert_printindex_command (CONVERTER *self, const enum 
command_id cmd,
           ELEMENT_LIST *other_subentries_tree = 0;
           int subentry_level = 1;
           ELEMENT *entry_content_element;
-          ELEMENT *entry_ref_tree = new_element (ET_NONE);
+          ELEMENT *entry_ref_tree;
           INDEX_ENTRY *index_entry_ref = letter_entry->entries[j];
           ELEMENT *main_entry_element = index_entry_ref->entry_element;
           ELEMENT *index_entry_info = lookup_extra_element (main_entry_element,
@@ -11981,6 +11981,8 @@ convert_printindex_command (CONVERTER *self, const enum 
command_id cmd,
                 }
             }
 
+          entry_ref_tree = new_element (ET_NONE);
+
           memset (new_normalized_entry_levels, 0,
                   sizeof (char *) * (SUBENTRIES_MAX_LEVEL +1));
 
@@ -12246,7 +12248,6 @@ convert_printindex_command (CONVERTER *self, const enum 
command_id cmd,
                   char *convert_info;
                   char *entry;
 
-
                   if (!with_new_formatted_entry
                       && prev_normalized_entry_levels[level]
                       && !strcmp (prev_normalized_entry_levels[level],



reply via email to

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