From 62aa4063470397ea667006a2922d94442dd85dba Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Sun, 29 Jul 2018 19:56:55 -0400 Subject: [PATCH] Fix missing newlines in producer messages --- bin/khatus_loop | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/khatus_loop b/bin/khatus_loop index d7d4eb1..f05e1ec 100755 --- a/bin/khatus_loop +++ b/bin/khatus_loop @@ -93,7 +93,7 @@ produce_bluetooth_power() { } else { power_status = "off" # TODO: Perhaps use differentiated marker? } - printf("%s", power_status); + printf("%s\n", power_status); }' } @@ -120,9 +120,9 @@ produce_volume() { /^[ \t]*front-right:/ {right = $4} END { if (mute == "yes") { - printf("x") + print("x") } else { - printf("%s %s", left, right) + print("%s %s\n", left, right) } } ' @@ -173,7 +173,7 @@ produce_mpd_state() { } printf(\ - "%s %s %s", + "%s %s %s\n", status["state:"], current_time, current_percentage\ ) } -- 2.20.1