Blame SOURCES/texinfo-5.1-enumerate-start-greater-than-nine-fix.patch

7e86f7
diff -up texinfo-5.1/tp/t/converters_tests.t.orig texinfo-5.1/tp/t/converters_tests.t
7e86f7
--- texinfo-5.1/tp/t/converters_tests.t.orig	2013-02-19 23:25:47.000000000 +0100
7e86f7
+++ texinfo-5.1/tp/t/converters_tests.t	2017-10-02 14:57:40.692452831 +0200
7e86f7
@@ -707,6 +707,11 @@ explanation
7e86f7
 in para
7e86f7
 @image{f--ile,,,a very long alt argument that could span more than one line who knows}.
7e86f7
 '],
7e86f7
+['enumerate_above_ten',
7e86f7
+'@enumerate 14
7e86f7
+@item a
7e86f7
+@end enumerate
7e86f7
+'],
7e86f7
 ['footnote_no_number',
7e86f7
 '@node Top
7e86f7
 
7e86f7
diff -up texinfo-5.1/tp/Texinfo/Common.pm.orig texinfo-5.1/tp/Texinfo/Common.pm
7e86f7
--- texinfo-5.1/tp/Texinfo/Common.pm.orig	2013-02-25 22:20:23.000000000 +0100
7e86f7
+++ texinfo-5.1/tp/Texinfo/Common.pm	2017-10-02 14:57:40.689452828 +0200
7e86f7
@@ -1382,7 +1382,7 @@ sub enumerate_item_representation($$)
7e86f7
   my $specification = shift;
7e86f7
   my $number = shift;
7e86f7
 
7e86f7
-  if ($specification =~ /^[0-9]$/) {
7e86f7
+  if ($specification =~ /^[0-9]+$/) {
7e86f7
     return $specification + $number -1;
7e86f7
   }
7e86f7
 
7e86f7
diff -up texinfo-5.1/tp/Texinfo/Parser.pm.orig texinfo-5.1/tp/Texinfo/Parser.pm
7e86f7
--- texinfo-5.1/tp/Texinfo/Parser.pm.orig	2013-03-05 02:11:42.000000000 +0100
7e86f7
+++ texinfo-5.1/tp/Texinfo/Parser.pm	2017-10-02 14:57:40.691452829 +0200
7e86f7
@@ -2973,7 +2973,7 @@ sub _end_line($$$)
7e86f7
                         $current->{'cmdname'});
7e86f7
           }
7e86f7
           my $arg = $current->{'extra'}->{'block_command_line_contents'}->[0]->[0];
7e86f7
-          if (!defined($arg->{'text'}) or $arg->{'text'} !~ /^[[:alnum:]]$/) {
7e86f7
+          if (!defined($arg->{'text'}) or $arg->{'text'} !~ /^(([[:digit:]]+)|([[:alpha:]]+))$/) {
7e86f7
             $self->_command_error($current, $line_nr, 
7e86f7
                         $self->__("bad argument to \@%s"),
7e86f7
                         $current->{'cmdname'});
7e86f7
diff -up texinfo-5.1/tp/t/results/converters_tests/enumerate_above_ten.pl.orig texinfo-5.1/tp/t/results/converters_tests/enumerate_above_ten.pl
7e86f7
--- texinfo-5.1/tp/t/results/converters_tests/enumerate_above_ten.pl.orig	2017-10-02 14:57:40.691452829 +0200
7e86f7
+++ texinfo-5.1/tp/t/results/converters_tests/enumerate_above_ten.pl	2017-10-02 14:57:40.691452829 +0200
7e86f7
@@ -0,0 +1,191 @@
7e86f7
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
7e86f7
+   %result_indices %result_sectioning %result_nodes %result_menus
7e86f7
+   %result_floats %result_converted %result_converted_errors 
7e86f7
+   %result_elements %result_directions_text);
7e86f7
+
7e86f7
+use utf8;
7e86f7
+
7e86f7
+$result_trees{'enumerate_above_ten'} = {
7e86f7
+  'contents' => [
7e86f7
+    {
7e86f7
+      'args' => [
7e86f7
+        {
7e86f7
+          'contents' => [
7e86f7
+            {
7e86f7
+              'extra' => {
7e86f7
+                'command' => {}
7e86f7
+              },
7e86f7
+              'parent' => {},
7e86f7
+              'text' => ' ',
7e86f7
+              'type' => 'empty_spaces_after_command'
7e86f7
+            },
7e86f7
+            {
7e86f7
+              'parent' => {},
7e86f7
+              'text' => '14'
7e86f7
+            },
7e86f7
+            {
7e86f7
+              'parent' => {},
7e86f7
+              'text' => '
7e86f7
+',
7e86f7
+              'type' => 'space_at_end_block_command'
7e86f7
+            }
7e86f7
+          ],
7e86f7
+          'parent' => {},
7e86f7
+          'type' => 'block_line_arg'
7e86f7
+        }
7e86f7
+      ],
7e86f7
+      'cmdname' => 'enumerate',
7e86f7
+      'contents' => [
7e86f7
+        {
7e86f7
+          'cmdname' => 'item',
7e86f7
+          'contents' => [
7e86f7
+            {
7e86f7
+              'extra' => {
7e86f7
+                'command' => {}
7e86f7
+              },
7e86f7
+              'parent' => {},
7e86f7
+              'text' => ' ',
7e86f7
+              'type' => 'empty_spaces_after_command'
7e86f7
+            },
7e86f7
+            {
7e86f7
+              'contents' => [
7e86f7
+                {
7e86f7
+                  'parent' => {},
7e86f7
+                  'text' => 'a
7e86f7
+'
7e86f7
+                }
7e86f7
+              ],
7e86f7
+              'parent' => {},
7e86f7
+              'type' => 'paragraph'
7e86f7
+            }
7e86f7
+          ],
7e86f7
+          'extra' => {
7e86f7
+            'item_number' => 1,
7e86f7
+            'spaces_after_command' => {}
7e86f7
+          },
7e86f7
+          'line_nr' => {
7e86f7
+            'file_name' => '',
7e86f7
+            'line_nr' => 2,
7e86f7
+            'macro' => ''
7e86f7
+          },
7e86f7
+          'parent' => {}
7e86f7
+        },
7e86f7
+        {
7e86f7
+          'args' => [
7e86f7
+            {
7e86f7
+              'contents' => [
7e86f7
+                {
7e86f7
+                  'extra' => {
7e86f7
+                    'command' => {}
7e86f7
+                  },
7e86f7
+                  'parent' => {},
7e86f7
+                  'text' => ' ',
7e86f7
+                  'type' => 'empty_spaces_after_command'
7e86f7
+                },
7e86f7
+                {
7e86f7
+                  'parent' => {},
7e86f7
+                  'text' => 'enumerate'
7e86f7
+                },
7e86f7
+                {
7e86f7
+                  'parent' => {},
7e86f7
+                  'text' => '
7e86f7
+',
7e86f7
+                  'type' => 'spaces_at_end'
7e86f7
+                }
7e86f7
+              ],
7e86f7
+              'parent' => {},
7e86f7
+              'type' => 'misc_line_arg'
7e86f7
+            }
7e86f7
+          ],
7e86f7
+          'cmdname' => 'end',
7e86f7
+          'extra' => {
7e86f7
+            'command' => {},
7e86f7
+            'command_argument' => 'enumerate',
7e86f7
+            'spaces_after_command' => {},
7e86f7
+            'text_arg' => 'enumerate'
7e86f7
+          },
7e86f7
+          'line_nr' => {
7e86f7
+            'file_name' => '',
7e86f7
+            'line_nr' => 3,
7e86f7
+            'macro' => ''
7e86f7
+          },
7e86f7
+          'parent' => {}
7e86f7
+        }
7e86f7
+      ],
7e86f7
+      'extra' => {
7e86f7
+        'block_command_line_contents' => [
7e86f7
+          [
7e86f7
+            {}
7e86f7
+          ]
7e86f7
+        ],
7e86f7
+        'end_command' => {},
7e86f7
+        'enumerate_specification' => '14',
7e86f7
+        'spaces_after_command' => {}
7e86f7
+      },
7e86f7
+      'line_nr' => {
7e86f7
+        'file_name' => '',
7e86f7
+        'line_nr' => 1,
7e86f7
+        'macro' => ''
7e86f7
+      },
7e86f7
+      'parent' => {}
7e86f7
+    }
7e86f7
+  ],
7e86f7
+  'type' => 'text_root'
7e86f7
+};
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'contents'}[1];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'extra'}{'spaces_after_command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'extra'}{'command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'extra'}{'spaces_after_command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1]{'parent'} = $result_trees{'enumerate_above_ten'}{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'extra'}{'block_command_line_contents'}[0][0] = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0]{'contents'}[1];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'extra'}{'end_command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'contents'}[1];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'extra'}{'spaces_after_command'} = $result_trees{'enumerate_above_ten'}{'contents'}[0]{'args'}[0]{'contents'}[0];
7e86f7
+$result_trees{'enumerate_above_ten'}{'contents'}[0]{'parent'} = $result_trees{'enumerate_above_ten'};
7e86f7
+
7e86f7
+$result_texis{'enumerate_above_ten'} = '@enumerate 14
7e86f7
+@item a
7e86f7
+@end enumerate
7e86f7
+';
7e86f7
+
7e86f7
+
7e86f7
+$result_texts{'enumerate_above_ten'} = '14. a
7e86f7
+';
7e86f7
+
7e86f7
+$result_errors{'enumerate_above_ten'} = [];
7e86f7
+
7e86f7
+
7e86f7
+
7e86f7
+$result_converted{'plaintext'}->{'enumerate_above_ten'} = '  14. a
7e86f7
+';
7e86f7
+
7e86f7
+
7e86f7
+$result_converted{'html_text'}->{'enumerate_above_ten'} = '
    7e86f7
    +
  1. a
  2. 7e86f7
    +
    7e86f7
    +';
    7e86f7
    +
    7e86f7
    +
    7e86f7
    +$result_converted{'xml'}->{'enumerate_above_ten'} = '<enumerate first="14" spaces=" " endspaces=" "><enumeratefirst>14</enumeratefirst>
    7e86f7
    +<listitem spaces=" "><para>a
    7e86f7
    +</para></listitem></enumerate>
    7e86f7
    +';
    7e86f7
    +
    7e86f7
    +
    7e86f7
    +$result_converted{'docbook'}->{'enumerate_above_ten'} = '<orderedlist numeration="arabic"><listitem><para>a
    7e86f7
    +</para></listitem></orderedlist>';
    7e86f7
    +
    7e86f7
    +1;