From: Siraaj Khandkar Date: Sun, 29 Jul 2018 23:56:55 +0000 (-0400) Subject: Fix missing newlines in producer messages X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=62aa4063470397ea667006a2922d94442dd85dba;p=khatus.git Fix missing newlines in producer messages --- 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\ ) }