texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Thu, 4 Jan 2024 18:01:55 -0500 (EST)

branch: master
commit 56a069c556417d9453df4d7169d3c19c3acdadaa
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Jan 5 00:01:54 2024 +0100

    * tp/Texinfo/Convert/HTML.pm (_convert_menu_entry_type): use a
    condition with node_content before using it.
---
 ChangeLog                  | 5 +++++
 tp/Texinfo/Convert/HTML.pm | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index f1afd628e6..9888a9e22a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-01-04  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/HTML.pm (_convert_menu_entry_type): use a
+       condition with node_content before using it.
+
 2024-01-04  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/Convert/Plaintext.pm (_convert) <process contents>:
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 7b1633579c..48d178882d 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -7332,7 +7332,8 @@ sub _convert_menu_entry_type($$$)
       if ($menu_entry_node->{'extra'}
           and $menu_entry_node->{'extra'}->{'manual_content'}) {
         $name = $self->command_text($menu_entry_node);
-      } elsif ($menu_entry_node->{'extra'}) {
+      } elsif ($menu_entry_node->{'extra'}
+               and $menu_entry_node->{'extra'}->{'node_content'}) {
         $name = $self->convert_tree({'type' => '_code',
                  'contents' => 
[$menu_entry_node->{'extra'}->{'node_content'}]},
                                     'menu_arg name');



reply via email to

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