Subject: | oddity when formatting strings like '1.0.1' (renumber=>0 doesn't work?) |
The following bit of code (using perl v5.8.7 on linux-2.4-x86) seems to
generate incorrect results. Even though I've explicitly set
"renumber=>0", a string like "1.0.1" transforms to "1..1". Note that
the string "1.1.1" remains unaltered. Is this a bug?
<output>
$ ./test.pl
version: 1.13
1..1
1..3
1..2 inline, the text works fine -- like 1.0.1, etc
</output>
<code_snippet>
#!/bin/perl
use Text::Autoformat qw(autoformat break_wrap);
print "version: $Text::Autoformat::VERSION\n";
my $text = <<ENDTEXT;
1.0.1
1.0.3
1.0.2
inline, the text works fine -- like 1.0.1, etc
ENDTEXT
print autoformat($text, {all=>1,renumber=>0});
</code_snippet>