Remove newline
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 22 Jan 2012 21:21:19 +0000 (16:21 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 22 Jan 2012 21:21:19 +0000 (16:21 -0500)
test/shaping/hb_test_tools.py

index 4b261c1..b564c24 100644 (file)
@@ -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:]