diff --git a/gramps/plugins/export/exportxml.py b/gramps/plugins/export/exportxml.py index 6c8b1d093..22d9aec2a 100644 --- a/gramps/plugins/export/exportxml.py +++ b/gramps/plugins/export/exportxml.py @@ -982,6 +982,11 @@ class GrampsXmlWriter(UpdateCallback): def dump_name(self, name,alternative=False,index=1): sp = " "*index name_type = name.get_type().xml_str() + # bug 9242 + if len(name.get_first_name().splitlines()) != 1: + firstname = "".join(name.get_first_name().splitlines()) + else: + firstname = name.get_first_name() self.g.write('%s\n') - self.write_line("first", name.get_first_name(), index+1) + self.write_line("first", firstname, index+1) self.write_line("call", name.get_call_name(), index+1) for surname in name.get_surname_list(): self.write_surname(surname,index+1) diff --git a/gramps/plugins/importer/importxml.py b/gramps/plugins/importer/importxml.py index 0f8b2a59e..36ef786e0 100644 --- a/gramps/plugins/importer/importxml.py +++ b/gramps/plugins/importer/importxml.py @@ -2825,6 +2825,9 @@ class GrampsParser(UpdateCallback): set_date(self.event, tag) def stop_first(self, tag): + # bug 9242 + if len(tag.splitlines()) != 1: + tag = "".join(tag.splitlines()) self.name.set_first_name(tag) def stop_call(self, tag):