Fix Py2 TypeError in GEDCOM export
Due to writing regular strings instead of unicode strings. svn: r21375
This commit is contained in:
parent
31745aaf8f
commit
c2a6e0e5d7
@ -271,15 +271,15 @@ class GedcomWriter(UpdateCallback):
|
||||
# make it unicode so that breakup below does the right thin.
|
||||
text = cuni(text)
|
||||
if limit:
|
||||
prefix = "\n%d CONC " % (level + 1)
|
||||
prefix = cuni("\n%d CONC " % (level + 1))
|
||||
txt = prefix.join(breakup(text, limit))
|
||||
else:
|
||||
txt = text
|
||||
self.gedcom_file.write("%d %s %s\n" % (token_level, token, txt))
|
||||
self.gedcom_file.write(cuni("%d %s %s\n" % (token_level, token, txt)))
|
||||
token_level = level + 1
|
||||
token = "CONT"
|
||||
else:
|
||||
self.gedcom_file.write("%d %s\n" % (level, token))
|
||||
self.gedcom_file.write(cuni("%d %s\n" % (level, token)))
|
||||
|
||||
def _header(self, filename):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user