From e482e4c9e5f6790cbd3328e21e397dee5f806b6f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 21 Aug 2001 03:30:23 +0000 Subject: [PATCH] handle XML entities correctly in place objects svn: r353 --- gramps/src/WriteXML.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gramps/src/WriteXML.py b/gramps/src/WriteXML.py index ce6d78864..e90a7658d 100644 --- a/gramps/src/WriteXML.py +++ b/gramps/src/WriteXML.py @@ -443,24 +443,24 @@ def exportData(database, filename, callback): g.write(" \n") for place in placeList: g.write(' \n' % \ - (place.getId(),place.get_title())) + (place.getId(),fix(place.get_title()))) if place.get_longitude() != "" or place.get_latitude() != "": g.write(' \n' % \ - (place.get_longitude(),place.get_latitude())) + (fix(place.get_longitude()),fix(place.get_latitude()))) loc = place.get_main_location() - city = loc.get_city() - state = loc.get_state() - country = loc.get_country() - county = loc.get_county() + city = fix(loc.get_city()) + state = fix(loc.get_state()) + country = fix(loc.get_country()) + county = fix(loc.get_county()) if city or state or country or county: g.write(' \n' % country) for loc in place.get_alternate_locations(): - city = loc.get_city() - state = loc.get_state() - country = loc.get_country() - county = loc.get_county() + city = fix(loc.get_city()) + state = fix(loc.get_state()) + country = fix(loc.get_country()) + county = fix(loc.get_county()) if city or state or country or county: g.write(' \n' \