* src/WriteXML.py: encode paths for objects in XML to handle

&, > and < in paths.


svn: r5963
This commit is contained in:
Don Allingham
2006-02-19 22:23:47 +00:00
parent acc52f6816
commit e8d471d4ee
2 changed files with 5 additions and 1 deletions

View File

@@ -849,7 +849,7 @@ class XmlWriter:
def write_object(self,obj):
handle = obj.get_gramps_id()
mime_type = obj.get_mime_type()
path = obj.get_path()
path = self.fix(obj.get_path())
if self.strip_photos:
path = os.path.basename(path)
self.g.write(' <object id="%s" handle="%s" change="%d" src="%s" mime="%s"' %