Fix missing newlines in producer messages
[khatus.git] / bin / khatus_loop
index d7d4eb1..f05e1ec 100755 (executable)
@@ -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\
             )
         }
This page took 0.02119 seconds and 4 git commands to generate.