From 4e7a4eed193bf89e5be8fe1fb59f692ad8cdffbb Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 19 Oct 2012 20:43:18 +0200 Subject: [PATCH] Don't use \n in notification messages, the next line is truncated --- xbmc-wiimote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc-wiimote b/xbmc-wiimote index 1ddc946..1a468e4 100755 --- a/xbmc-wiimote +++ b/xbmc-wiimote @@ -202,7 +202,7 @@ def main(): battperc = 100.0 * wm.state['battery'] / cwiid.BATTERY_MAX print("Wiimote connected (battery: %d%%)" % battperc) xbmc.send_notification(PROGRAM, - "Wiimote connected\n(battery: %d%%)" % battperc) + "Wiimote connected (battery: %d%%)" % battperc) tim.join() # A timeout has occured (due to inactivity), close the connection to # the Wiimote.