Fix XML export when 'Group-as" name contains XML invalid chars

Fixes #11834
This commit is contained in:
prculley 2020-07-09 11:51:50 -05:00 committed by Paul Culley
parent 62d5a136a4
commit 13d83919b9

View File

@ -376,7 +376,7 @@ class GrampsXmlWriter(UpdateCallback):
for key in group_map: for key in group_map:
value = self.db.get_name_group_mapping(key) value = self.db.get_name_group_mapping(key)
self.g.write(' <map type="group_as" key="%s" value="%s"/>\n' self.g.write(' <map type="group_as" key="%s" value="%s"/>\n'
% (self.fix(key), value)) % (self.fix(key), self.fix(value)))
self.g.write(" </namemaps>\n") self.g.write(" </namemaps>\n")
def write_bookmarks(self): def write_bookmarks(self):