Fix bug introduced in commit 8dffe66

The fix function can be passed a str or int.
This commit is contained in:
Nick Hall 2015-12-08 11:08:51 +00:00
parent f4f5544060
commit 31bcba8d5d

View File

@ -439,6 +439,7 @@ class GrampsXmlWriter(UpdateCallback):
self.g.write('/>\n')
def fix(self, line):
l = str(line)
l = l.strip().translate(strip_dict)
return escxml(l)