Commit bb7f85d1 authored by Keith Jolley's avatar Keith Jolley
Browse files

Remove newlines in fields when converting text to Excel.

parent dbe1c5b9
......@@ -346,6 +346,7 @@ sub text2excel {
my %widths;
while ( my $line = <$text_fh> ) {
$line =~ s/[\r\n]/ /g;
my $format = !$options->{'no_header'} && $row == 0 ? $header_format : $cell_format;
my @values = split /\t/, $line;
foreach my $value (@values) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment