From 3c9a39ecd65990f2c7b29bb741c6a538fa425531 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 22 Jan 2012 16:21:19 -0500 Subject: [PATCH] Remove newline --- test/shaping/hb_test_tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/shaping/hb_test_tools.py b/test/shaping/hb_test_tools.py index 4b261c1a3..b564c2451 100644 --- a/test/shaping/hb_test_tools.py +++ b/test/shaping/hb_test_tools.py @@ -188,6 +188,8 @@ class UtilMains: line = sys.stdin.readline () if not len (line): break + if line[-1] == '\n': + line = line[:-1] print callback (line) else: args = sys.argv[1:]