bug-texinfo
[Top][All Lists]
Advanced

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

Re: @enumerate does not support start numbers ≥ 10


From: Dmitry Shachnev
Subject: Re: @enumerate does not support start numbers ≥ 10
Date: Tue, 09 Jul 2013 21:05:41 +0400

Please consider this patch, which fixes the issue:

--- texinfo/Texinfo/Parser.pm
+++ texinfo/Texinfo/Parser.pm
@@ -2973,7 +2973,8 @@
                         $current->{'cmdname'});
           }
           my $arg = 
$current->{'extra'}->{'block_command_line_contents'}->[0]->[0];
-          if (!defined($arg->{'text'}) or $arg->{'text'} !~ /^[[:alnum:]]$/) {
+          if (!defined($arg->{'text'}) or ($arg->{'text'} !~ /^[[:alnum:]]$/ 
and
+              $arg->{'text'} !~ /^[0-9]+$/)) {
             $self->_command_error($current, $line_nr, 
                         $self->__("bad argument to address@hidden"),
                         $current->{'cmdname'});

--
Dmitry Shachnev

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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