From: Robert 'phaylon' Sedlacek Date: Wed, 19 Sep 2012 12:04:42 +0000 (+0000) Subject: fixed line-break transformation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30c3573fad43a0fe7d6b5955aa1beace50d7981a;p=scpubgit%2FSystem-Introspector-Report.git fixed line-break transformation --- diff --git a/lib/System/Introspector/Report/Publish/MediaWiki/Producer.pm b/lib/System/Introspector/Report/Publish/MediaWiki/Producer.pm index db40895..e5861ab 100644 --- a/lib/System/Introspector/Report/Publish/MediaWiki/Producer.pm +++ b/lib/System/Introspector/Report/Publish/MediaWiki/Producer.pm @@ -48,7 +48,9 @@ my $_prepare_column_content = sub { my ($content) = @_; return '' unless defined $content; - my @lines = split m{\n}, $content; + my @lines = split qr{\n}, $content; + return '' + unless @lines; if (@lines == 1) { return $content; }