texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Fri, 23 Feb 2024 06:35:01 -0500 (EST)

branch: master
commit 9762ad9f9a099beb5fe5c21e86f663fdf434582d
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Feb 23 11:51:02 2024 +0100

    * tp/Texinfo/XS/main/node_name_normalization.c
    (convert_to_normalized_internal): change order of condition in if,
    change comments.
---
 ChangeLog                                    |  6 ++++++
 tp/Texinfo/XS/main/node_name_normalization.c | 13 ++++---------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 809aefd2e2..80e73925a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-23  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/main/node_name_normalization.c
+       (convert_to_normalized_internal): change order of condition in if,
+       change comments.
+
 2024-02-23  Patrice Dumas  <pertusus@free.fr>
 
        * /tp/Texinfo/XS/convert/convert_html.c
diff --git a/tp/Texinfo/XS/main/node_name_normalization.c 
b/tp/Texinfo/XS/main/node_name_normalization.c
index e3f61f1614..177bd7285c 100644
--- a/tp/Texinfo/XS/main/node_name_normalization.c
+++ b/tp/Texinfo/XS/main/node_name_normalization.c
@@ -102,20 +102,15 @@ convert_to_normalized_internal (const ELEMENT *e, TEXT 
*result)
               text_init (&accent_text);
               convert_to_normalized_internal (e->args.list[0], &accent_text);
               accented_char = unicode_accent (accent_text.text, e);
-              if (!accented_char)
-                ADD(accent_text.text);
-              /* TODO?  Should never happen
+              if (accented_char)
                 {
-                  accented_char = ascii_accent (accent_text, e)
                   ADD(accented_char);
                   free (accented_char);
                 }
-               */
               else
-                {
-                  ADD(accented_char);
-                  free (accented_char);
-                }
+     /* If this case was possible, the node normalization would not follow the
+        specification, but it is not possible, see unicode_accent. */
+                ADD(accent_text.text);
               free (accent_text.text);
             }
         }



reply via email to

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