Fix of issue 3865.

svn: r15236
This commit is contained in:
Peter Landgren 2010-04-19 13:53:43 +00:00
parent 4d51c49508
commit f32a092057

View File

@ -44,7 +44,7 @@ import libgedcom
import Errors import Errors
from ExportOptions import WriterOptionBox from ExportOptions import WriterOptionBox
from gen.updatecallback import UpdateCallback from gen.updatecallback import UpdateCallback
from Utils import media_path_full from Utils import media_path_full, get_unicode_path
import gen.proxy import gen.proxy
from QuestionDialog import ErrorDialog from QuestionDialog import ErrorDialog
from PlaceUtils import conv_lat_lon from PlaceUtils import conv_lat_lon
@ -329,6 +329,8 @@ class GedcomWriter(UpdateCallback):
textlist = textlines.split('\n') textlist = textlines.split('\n')
token_level = level token_level = level
for text in textlist: for text in textlist:
# make it unicode so that breakup below does the right thin.
text = get_unicode_path(text)
if limit: if limit:
prefix = "\n%d CONC " % (level + 1) prefix = "\n%d CONC " % (level + 1)
txt = prefix.join(breakup(text, limit)) txt = prefix.join(breakup(text, limit))