texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp Texinfo/Parser.pm t/results/indices/...


From: Patrice Dumas
Subject: texinfo/tp Texinfo/Parser.pm t/results/indices/...
Date: Sat, 15 Oct 2011 16:11:22 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/10/15 16:11:21

Modified files:
        tp/Texinfo     : Parser.pm 
        tp/t/results/indices: empty_cindex_entry.pl 
        tp/t/results/invalid_nestings: center.pl 
        tp/t/results/misc_commands: empty_center.pl 
        tp/t/results/sectioning: two_unnumbered_no_argument.pl 
                                 unnumbered_no_argument.pl 
        tp/t/results/xtable: empty_item_itemx.pl 

Log message:
        misc commands with missing line argument only get a warning and not
        an error.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.314&r2=1.315
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/indices/empty_cindex_entry.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/invalid_nestings/center.pl?cvsroot=texinfo&r1=1.42&r2=1.43
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/empty_center.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/two_unnumbered_no_argument.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/unnumbered_no_argument.pl?cvsroot=texinfo&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/xtable/empty_item_itemx.pl?cvsroot=texinfo&r1=1.18&r2=1.19

Patches:
Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.314
retrieving revision 1.315
diff -u -b -r1.314 -r1.315
--- Texinfo/Parser.pm   15 Oct 2011 15:57:06 -0000      1.314
+++ Texinfo/Parser.pm   15 Oct 2011 16:11:14 -0000      1.315
@@ -2788,7 +2788,7 @@
       _trim_spaces_comment_from_content(address@hidden);
       # empty @top is allowed
       if (!scalar(@contents) and $command ne 'top') {
-        $self->line_error (sprintf($self->__("address@hidden missing 
argument"), 
+        $self->line_warn (sprintf($self->__("address@hidden missing 
argument"), 
            $command), $line_nr);
         $current->{'extra'}->{'missing_argument'} = 1;
       } else {

Index: t/results/indices/empty_cindex_entry.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/indices/empty_cindex_entry.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/indices/empty_cindex_entry.pl     19 Aug 2011 23:09:39 -0000      
1.6
+++ t/results/indices/empty_cindex_entry.pl     15 Oct 2011 16:11:14 -0000      
1.7
@@ -144,13 +144,13 @@
 
 $result_errors{'empty_cindex_entry'} = [
   {
-    'error_line' => ':2: @cindex missing argument
+    'error_line' => ':2: warning: @cindex missing argument
 ',
     'file_name' => '',
     'line_nr' => 2,
     'macro' => '',
     'text' => '@cindex missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   }
 ];
 

Index: t/results/invalid_nestings/center.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/invalid_nestings/center.pl,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- t/results/invalid_nestings/center.pl        4 Sep 2011 12:14:05 -0000       
1.42
+++ t/results/invalid_nestings/center.pl        15 Oct 2011 16:11:15 -0000      
1.43
@@ -2353,13 +2353,13 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':31: @center missing argument
+    'error_line' => ':31: warning: @center missing argument
 ',
     'file_name' => '',
     'line_nr' => 31,
     'macro' => '',
     'text' => '@center missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   },
   {
     'error_line' => ':33: warning: @center should only appear at a line 
beginning

Index: t/results/misc_commands/empty_center.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/empty_center.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/misc_commands/empty_center.pl     13 Aug 2011 15:33:09 -0000      
1.6
+++ t/results/misc_commands/empty_center.pl     15 Oct 2011 16:11:16 -0000      
1.7
@@ -53,13 +53,13 @@
 
 $result_errors{'empty_center'} = [
   {
-    'error_line' => ':1: @center missing argument
+    'error_line' => ':1: warning: @center missing argument
 ',
     'file_name' => '',
     'line_nr' => 1,
     'macro' => '',
     'text' => '@center missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   }
 ];
 

Index: t/results/sectioning/two_unnumbered_no_argument.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/two_unnumbered_no_argument.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/sectioning/two_unnumbered_no_argument.pl  1 Oct 2011 10:29:34 
-0000       1.6
+++ t/results/sectioning/two_unnumbered_no_argument.pl  15 Oct 2011 16:11:16 
-0000      1.7
@@ -124,22 +124,22 @@
 
 $result_errors{'two_unnumbered_no_argument'} = [
   {
-    'error_line' => ':1: @unnumbered missing argument
+    'error_line' => ':1: warning: @unnumbered missing argument
 ',
     'file_name' => '',
     'line_nr' => 1,
     'macro' => '',
     'text' => '@unnumbered missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   },
   {
-    'error_line' => ':2: @unnumbered missing argument
+    'error_line' => ':2: warning: @unnumbered missing argument
 ',
     'file_name' => '',
     'line_nr' => 2,
     'macro' => '',
     'text' => '@unnumbered missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   }
 ];
 

Index: t/results/sectioning/unnumbered_no_argument.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/unnumbered_no_argument.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- t/results/sectioning/unnumbered_no_argument.pl      3 Jul 2011 14:51:03 
-0000       1.11
+++ t/results/sectioning/unnumbered_no_argument.pl      15 Oct 2011 16:11:17 
-0000      1.12
@@ -75,13 +75,13 @@
 
 $result_errors{'unnumbered_no_argument'} = [
   {
-    'error_line' => ':1: @unnumbered missing argument
+    'error_line' => ':1: warning: @unnumbered missing argument
 ',
     'file_name' => '',
     'line_nr' => 1,
     'macro' => '',
     'text' => '@unnumbered missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   }
 ];
 

Index: t/results/xtable/empty_item_itemx.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/xtable/empty_item_itemx.pl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- t/results/xtable/empty_item_itemx.pl        15 Sep 2011 22:16:45 -0000      
1.18
+++ t/results/xtable/empty_item_itemx.pl        15 Oct 2011 16:11:18 -0000      
1.19
@@ -473,13 +473,13 @@
     'type' => 'error'
   },
   {
-    'error_line' => ':6: @itemx missing argument
+    'error_line' => ':6: warning: @itemx missing argument
 ',
     'file_name' => '',
     'line_nr' => 6,
     'macro' => '',
     'text' => '@itemx missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   },
   {
     'error_line' => ':7: Entry for index `vr\' outside of any node
@@ -491,13 +491,13 @@
     'type' => 'error'
   },
   {
-    'error_line' => ':8: @item missing argument
+    'error_line' => ':8: warning: @item missing argument
 ',
     'file_name' => '',
     'line_nr' => 8,
     'macro' => '',
     'text' => '@item missing argument',
-    'type' => 'error'
+    'type' => 'warning'
   },
   {
     'error_line' => ':9: Entry for index `vr\' outside of any node



reply via email to

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