texinfo-commits
[Top][All Lists]
Advanced

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

[7881] check return value of _text_to_;lines


From: gavinsmith0123
Subject: [7881] check return value of _text_to_;lines
Date: Thu, 29 Jun 2017 13:38:20 -0400 (EDT)

Revision: 7881
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7881
Author:   gavin
Date:     2017-06-29 13:38:20 -0400 (Thu, 29 Jun 2017)
Log Message:
-----------
check return value of _text_to_;lines

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tp/Texinfo/Parser.pm

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2017-06-29 17:27:32 UTC (rev 7880)
+++ trunk/ChangeLog     2017-06-29 17:38:20 UTC (rev 7881)
@@ -1,5 +1,10 @@
 2017-06-29  Gavin Smith  <address@hidden>
 
+       * tp/Texinfo/Parser.pm (_parse_texi) <macro expansion>:
+       Add a check for the return value of _text_to_lines being empty.
+
+2017-06-29  Gavin Smith  <address@hidden>
+
        * tp/t/html_tests.t (simple_menu): Add @node and @top commands
        so that the menu is inside a node.
 

Modified: trunk/tp/Texinfo/Parser.pm
===================================================================
--- trunk/tp/Texinfo/Parser.pm  2017-06-29 17:27:32 UTC (rev 7880)
+++ trunk/tp/Texinfo/Parser.pm  2017-06-29 17:38:20 UTC (rev 7881)
@@ -3869,6 +3869,7 @@
         }
 
         my $expanded_lines = _text_to_lines($expanded);
+        next if (address@hidden);
         chomp ($expanded_lines->[-1]);
         pop @$expanded_lines if ($expanded_lines->[-1] eq '');
         print STDERR "MACRO EXPANSION LINES: ".join('|', @$expanded_lines)




reply via email to

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