Subject: | Remove restriction on "=item $number" |
Pod::Simple has begun issuing the error "Expected text after =item, not a number" when =item numbers are out of order. For example from Regexp::Assemble documenting bit fields...
=over 8
=item 0
Off. Turns off all debugging output.
=item 1
Add. Trace the addition of patterns.
=item 2
Reduce. Trace the process of reduction and assembly.
=item 4
Lex. Trace the lexing of the input patterns into its constituent
tokens.
=back
This is strictly disallowed in perlpodspec...
· An "=over" ... "=back" region containing only
"m/\A=item\s+\d+\.?\s*\z/" paragraphs, each one (or each group
of them) followed by some number of ordinary/verbatim
paragraphs, other nested "=over" ... "=back" regions, "=for..."
paragraphs, and/or "=begin"..."=end" codes. Note that the
numbers must start at 1 in each section, and must proceed in
order and without skipping numbers.
However, it's IMO a silly restriction to say that there's one and only one use for numbered items and that is an ordered, sequential list starting at 1.
I'm not sure who's in charge of perlpodspec, but the error is coming from Pod::Simple.
=over 8
=item 0
Off. Turns off all debugging output.
=item 1
Add. Trace the addition of patterns.
=item 2
Reduce. Trace the process of reduction and assembly.
=item 4
Lex. Trace the lexing of the input patterns into its constituent
tokens.
=back
This is strictly disallowed in perlpodspec...
· An "=over" ... "=back" region containing only
"m/\A=item\s+\d+\.?\s*\z/" paragraphs, each one (or each group
of them) followed by some number of ordinary/verbatim
paragraphs, other nested "=over" ... "=back" regions, "=for..."
paragraphs, and/or "=begin"..."=end" codes. Note that the
numbers must start at 1 in each section, and must proceed in
order and without skipping numbers.
However, it's IMO a silly restriction to say that there's one and only one use for numbered items and that is an ordered, sequential list starting at 1.
I'm not sure who's in charge of perlpodspec, but the error is coming from Pod::Simple.