From f49eeb56852dff7f8dfe41c82de6518b63f954e7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 2 Feb 2002 20:50:17 +0000 Subject: [PATCH] Ignore control characters on import svn: r742 --- src/latin_ansel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/latin_ansel.py b/src/latin_ansel.py index 12fec2670..b3b66c6ea 100644 --- a/src/latin_ansel.py +++ b/src/latin_ansel.py @@ -80,7 +80,10 @@ def ansel_to_latin(s): buff = cStringIO.StringIO() while s: c0 = ord(s[0]) - if c0 > 127: + if c0 <= 31: + head = ' ' + s = s[1:] + elif c0 > 127: try: if c0 >= 0xE0: c1 = ord(s[1])