On Di, 09 Jul 2013, Karl Berry wrote: > . Tenth item. Indeed. Interestingly, the XML and PDF output is correct, but plaintext and info is wrong.
> $arg->{'text'} and hence $spec are indeed "10" ... The bug is somewhere else, namely in Texinfo/Common.pm:2530: sub enumerate_item_representation($$) { my $specification = shift; my $number = shift; if ($specification =~ /^[0-9]$/) { return $specification + $number -1; } ... The specification is sent in from the converters, and contains the first argument. But here only single digits are accepted. I propose: if ($specification =~ /^[0-9]+$/) { this instead. (mind the +) With this change ontop of the other patch and the file: ---- \input texinfo @node Top, , , @enumerate 9 @item item starting at 9 @end enumerate @enumerate 10 @item item starting at 10 working now @end enumerate @bye ---- I get: $ makeinfo --plaintext tt.texi 9. item starting at 9 10. item starting at 10 working now $ makeinfo tt.texi then the .info file contains: ... File: texienum.info, Node: Top 9. item starting at 9 10. item starting at 10 working now ... Norbert ------------------------------------------------------------------------ PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live & Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 ------------------------------------------------------------------------