--- a/code2html
+++ b/code2html
@@ -1357,7 +1357,7 @@
my @lines = split ( /\n/, $_[0] );
my $nr = 0;
- my $lengthofnr = length(@lines);
+ my $lengthofnr = length(scalar(@lines));
my $format = qq{%${lengthofnr}u %s\n} ;
join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $_ )} @lines));
},
@@ -1367,7 +1367,7 @@
my @lines = split ( /\n/, $_[0] );
my $nr = 0;
- my $lengthofnr = length(@lines);
+ my $lengthofnr = length(scalar(@lines));
my $format = qq{%$ {lengthofnr}u %s\n};
join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $nr, $_ )} @lines));
}