--- sql2xls.cgi 2008/11/03 18:50:02 7 +++ sql2xls.cgi 2008/11/03 18:51:49 8 @@ -114,6 +114,9 @@ my $fmt_comment = $workbook->addformat(); # Add a format $fmt_comment->set_bold(); + $comment =~ s/^\s+//; + $comment =~ s/\s+$//; + $worksheet->write($row, 0, _c($comment), $fmt_comment); $row+=2; }