From 548d8903f5ce592dba7d2a4180f523e3f98b5392 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 --- gramps/src/latin_ansel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/src/latin_ansel.py b/gramps/src/latin_ansel.py index 12fec2670..b3b66c6ea 100644 --- a/gramps/src/latin_ansel.py +++ b/gramps/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])