From: Marius Gavrilescu Date: Tue, 3 Feb 2015 18:51:54 +0000 (+0200) Subject: Prevent extraneous empty lines in compiler output X-Git-Tag: 5999.000_005~58 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=837911b376705e31b1affbe5679f92e072d2601e;p=gruntmaster-daemon.git Prevent extraneous empty lines in compiler output --- diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index 41bfc0c..cca52ed 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -96,7 +96,7 @@ sub prepare{ die "Compile error\n" } finally { $Gruntmaster::Daemon::errors .= read_file 'errors'; - $Gruntmaster::Daemon::errors .= "\n"; + $Gruntmaster::Daemon::errors .= "\n" if -s 'errors'; unlink 'errors'; }; }