texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Reindent.


From: Patrice Dumas
Subject: branch master updated: Reindent.
Date: Sun, 07 Jan 2024 12:18:55 -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 aad3c7c225 Reindent.
aad3c7c225 is described below

commit aad3c7c225290d8c9acfab1945012c0f293874d2
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Jan 7 18:18:49 2024 +0100

    Reindent.
---
 tp/Texinfo/XS/convert/convert_html.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index d4c17037eb..dfb8937ca2 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -12733,8 +12733,10 @@ convert_printindex_command (CONVERTER *self, const 
enum command_id cmd,
               free (convert_info);
 
               if (last_entry_level == 0
-                  && (!entry || entry[strspn (entry, whitespace_chars)] == 
'\0'))
+                  && (!entry
+                      || entry[strspn (entry, whitespace_chars)] == '\0'))
                 {
+                  free (entry);
                   free (new_normalized_entry_levels[0]);
                   new_normalized_entry_levels[0] = 0;
                 }
@@ -12883,8 +12885,9 @@ convert_printindex_command (CONVERTER *self, const enum 
command_id cmd,
                   text_append_n (&entries_text, "</td></tr>\n", 11);
                 }
             }
-         if (new_normalized_entry_levels[0] != 0)
-           {
+
+          if (new_normalized_entry_levels[0] != 0)
+            {
               for (level = 0; level < SUBENTRIES_MAX_LEVEL; level++)
                 {
                   free (prev_normalized_entry_levels[level]);



reply via email to

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