texinfo-commits
[Top][All Lists]
Advanced

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

[8418] no invalid_nesting


From: gavinsmith0123
Subject: [8418] no invalid_nesting
Date: Sat, 27 Oct 2018 05:04:38 -0400 (EDT)

Revision: 8418
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8418
Author:   gavin
Date:     2018-10-27 05:04:38 -0400 (Sat, 27 Oct 2018)
Log Message:
-----------
no invalid_nesting

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tp/Texinfo/Parser.pm
    trunk/tp/t/results/misc_commands/command_in_heading_footing.pl

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2018-10-26 21:50:29 UTC (rev 8417)
+++ trunk/ChangeLog     2018-10-27 09:04:38 UTC (rev 8418)
@@ -1,3 +1,8 @@
+2018-10-27  Gavin Smith  <address@hidden>
+
+       * tp/Texinfo/Parser.pm (_parse_texi) <in heading commands>:
+       Do not set an 'invalid_nesting' value.
+
 2018-10-26  Gavin Smith  <address@hidden>
 
        * tp/Texinfo/Parser.pm (_check_valid_nesting): New sub, split 

Modified: trunk/tp/Texinfo/Parser.pm
===================================================================
--- trunk/tp/Texinfo/Parser.pm  2018-10-26 21:50:29 UTC (rev 8417)
+++ trunk/tp/Texinfo/Parser.pm  2018-10-27 09:04:38 UTC (rev 8418)
@@ -4105,16 +4105,13 @@
           my $misc;
 
           if ($arg_spec eq 'noarg') {
-            my $only_in_headings = 0;
             if ($in_heading_commands{$command}) {
               $self->line_error(
                 sprintf(__("address@hidden should only appear in heading or 
footing"),
                         $command), $line_nr);
-              $only_in_headings = 1;
             }
             $misc = {'cmdname' => $command, 'parent' => $current};
             push @{$current->{'contents'}}, $misc;
-            $misc->{'extra'}->{'invalid_nesting'} = 1 if ($only_in_headings);
             _register_global_command($self, $misc, $line_nr);
             $current = _begin_preformatted($self, $current)
               if ($close_preformatted_commands{$command});

Modified: trunk/tp/t/results/misc_commands/command_in_heading_footing.pl
===================================================================
--- trunk/tp/t/results/misc_commands/command_in_heading_footing.pl      
2018-10-26 21:50:29 UTC (rev 8417)
+++ trunk/tp/t/results/misc_commands/command_in_heading_footing.pl      
2018-10-27 09:04:38 UTC (rev 8418)
@@ -44,9 +44,6 @@
         },
         {
           'cmdname' => 'thispage',
-          'extra' => {
-            'invalid_nesting' => 1
-          },
           'parent' => {}
         },
         {
@@ -55,9 +52,6 @@
         },
         {
           'cmdname' => 'thischapternum',
-          'extra' => {
-            'invalid_nesting' => 1
-          },
           'parent' => {}
         },
         {
@@ -114,7 +108,10 @@
 ];
 
 
+$result_floats{'command_in_heading_footing'} = {};
 
+
+
 $result_converted{'plaintext'}->{'command_in_heading_footing'} = 'In text text.
 ';
 




reply via email to

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