summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.i3/conky-wrapper.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/.i3/conky-wrapper.pl b/.i3/conky-wrapper.pl
index 2ab2925..da02291 100755
--- a/.i3/conky-wrapper.pl
+++ b/.i3/conky-wrapper.pl
@@ -29,10 +29,10 @@ my %simple_mappings = (
"SHORTTEXT" => "shorttext",
);
-while (<$conky>) {
+LINE: while (<$conky>) {
chomp($_);
- next if m/^\s+$/;
+ next if m/^\s*$/;
if (m/^END_BLOCK$/) {
STDOUT->printf("%s,\n", $json->encode(\@data));
@@ -48,7 +48,7 @@ while (<$conky>) {
for my $key (keys %simple_mappings) {
if (m/^$key: (.*)$/) {
$in_progress{$simple_mappings{$key}} = $1;
- next;
+ next LINE;
}
}