--- lib/Perly/SyntaxHighlight.pm 2008/06/08 18:09:07 45 +++ lib/Perly/SyntaxHighlight.pm 2008/06/08 18:34:21 46 @@ -58,6 +58,8 @@ my $self = shift; my $html = $formatter->format_string( shift ); + $html =~ s/[\n\r]+$//s; + # we use CSS white-space: pre, and yet we have to insert
s into html # because copy/paste would squash code in single line $html =~ s!\r?\n!\n
!gs;