From ead2b9a0d03bcf6ec3e2e7de46c4345ff1f86272 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sun, 25 Aug 2013 16:40:41 -0400 Subject: [PATCH] Avoid final extra \n at end of output. --- conky-mythtv-weather-build.plx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conky-mythtv-weather-build.plx b/conky-mythtv-weather-build.plx index c78dc2c..1be1823 100755 --- a/conky-mythtv-weather-build.plx +++ b/conky-mythtv-weather-build.plx @@ -90,7 +90,7 @@ foreach my $ii (qw/0 1 2 3 4 5/) { $pop =~ s/\s+//g; $pop = " $pop" if length($pop) eq 2; $pop = " $pop" if length($pop) eq 3; - print "\${font :size=${FONT_SIZE}px} $time: $temp $degree \${image $mythIconPath/$icon -p $xpos,$vpos -s 25x18} $pop chance\n\n"; + print "\${font :size=${FONT_SIZE}px} $time: $temp $degree \${image $mythIconPath/$icon -p $xpos,$vpos -s 25x18} $pop chance\n"; $vpos += ($FONT_SIZE * 2) + 15; } ($xpos, $vpos) = ($FONT_SIZE * 26, @@ -100,7 +100,7 @@ foreach my $ii (qw/0 1 2 3 4 5/) { my($day, $high, $low, $icon) = ($data{extended}{"date-${ii}"}, $data{extended}{"high-${ii}"}, $data{extended}{"low-${ii}"}, $data{extended}{"icon-${ii}"}); - print "\${font :size=${FONT_SIZE}px} $day:\${goto 120}High: $high $degree Low: $low $degree \${image $mythIconPath/$icon -p $xpos,$vpos -s 25x18}\n\n"; + print "\n\${font :size=${FONT_SIZE}px} $day:\${goto 120}High: $high $degree Low: $low $degree \${image $mythIconPath/$icon -p $xpos,$vpos -s 25x18}\n"; $vpos += ($FONT_SIZE * 2) + 15; }