bug 9445; fix XML export of notes so lead/trail spaces are preserved (#379)

This commit is contained in:
Paul Culley 2017-05-05 00:29:15 -05:00 committed by Sam Manzi
parent 98238c7112
commit 2974f82aad

View File

@ -511,7 +511,7 @@ class GrampsXmlWriter(UpdateCallback):
self.g.write(' ' * indent) self.g.write(' ' * indent)
self.g.write('<%s>' % val) self.g.write('<%s>' % val)
self.g.write(self.fix(text.rstrip())) self.g.write(escxml(str(text).translate(strip_dict)))
self.g.write("</%s>\n" % val) self.g.write("</%s>\n" % val)
def write_person(self,person,index=1): def write_person(self,person,index=1):