do {
$myone = 0;
# This RegEx will split any word that is longer than {25} symbols
- $row->[$j] =~ s#(\b\S{$max_word_len}?)(\S.*?\b)# $1 $2#;
+ $row->[$j] =~ s#(\b\S{$max_word_len}?)(\S.+\b)# $1 $2#;
$myone = 1 if ( defined $2 );
} while( $myone );
$row->[$j] =~ s/^\s+//;
if ($remaining_header_rows) {
$remaining_header_rows--;
} else {
- $row_cnt++;
+ $row_cnt++ unless $do_leftovers;
}
}# End of while(scalar(@{$data}) and $cur_y-$row_h > $bot_marg)