From 2974f82aadaedae3116c56194cf01da6ae8d9fe7 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Fri, 5 May 2017 00:29:15 -0500 Subject: [PATCH] bug 9445; fix XML export of notes so lead/trail spaces are preserved (#379) --- gramps/plugins/export/exportxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/export/exportxml.py b/gramps/plugins/export/exportxml.py index 091749e50..c00651939 100644 --- a/gramps/plugins/export/exportxml.py +++ b/gramps/plugins/export/exportxml.py @@ -511,7 +511,7 @@ class GrampsXmlWriter(UpdateCallback): self.g.write(' ' * indent) self.g.write('<%s>' % val) - self.g.write(self.fix(text.rstrip())) + self.g.write(escxml(str(text).translate(strip_dict))) self.g.write("\n" % val) def write_person(self,person,index=1):