PKGBUILDs/core/texinfo/perl.patch
2023-02-25 22:07:22 +00:00

11 lines
665 B
Diff

--- texinfo-7.0.1/tp/Texinfo/ParserNonXS.pm.orig 2022-11-30 18:06:28.000000000 +0100
+++ texinfo-7.0.1/tp/Texinfo/ParserNonXS.pm 2022-12-13 11:17:37.240447516 +0100
@@ -4357,7 +4357,7 @@
and ($current->{'parent'}->{'type'} eq 'menu_comment'
or $current->{'parent'}->{'type'} eq 'menu_entry_description')
and $asterisk
- and @{$current->{'contents'}}
+ and ref($current->{'contents'}) eq "ARRAY"
and $current->{'contents'}->[-1]->{'type'}
and $current->{'contents'}->[-1]->{'type'} eq 'empty_line'
and $current->{'contents'}->[-1]->{'text'} eq '') {