* src/GrampsDb/_WriteXML.py: Escape XML special chars
svn: r7788
This commit is contained in:
parent
4dcae32365
commit
da1cf5ed9c
@ -5,6 +5,7 @@
|
|||||||
* src/DataViews/_PedigreeView.py: Escape XML special chars
|
* src/DataViews/_PedigreeView.py: Escape XML special chars
|
||||||
* src/plugins/TestcaseGenerator.py: Create media note object;
|
* src/plugins/TestcaseGenerator.py: Create media note object;
|
||||||
Randomize URL
|
Randomize URL
|
||||||
|
* src/GrampsDb/_WriteXML.py: Escape XML special chars
|
||||||
|
|
||||||
2006-12-11 Don Allingham <don@gramps-project.org>
|
2006-12-11 Don Allingham <don@gramps-project.org>
|
||||||
* src/Editors/_EditMedia.py: fix menu title (bug#755)
|
* src/Editors/_EditMedia.py: fix menu title (bug#755)
|
||||||
|
@ -526,7 +526,7 @@ class XmlWriter(UpdateCallback):
|
|||||||
return
|
return
|
||||||
sp = " "*index
|
sp = " "*index
|
||||||
priv_text = conf_priv(personref)
|
priv_text = conf_priv(personref)
|
||||||
rel_text = ' rel="%s"' % personref.get_relation()
|
rel_text = ' rel="%s"' % escxml(personref.get_relation())
|
||||||
|
|
||||||
sreflist = personref.get_source_references()
|
sreflist = personref.get_source_references()
|
||||||
if (len(sreflist) == 0) and personref.get_note() =="":
|
if (len(sreflist) == 0) and personref.get_note() =="":
|
||||||
@ -697,9 +697,9 @@ class XmlWriter(UpdateCallback):
|
|||||||
g = name.get_group_as()
|
g = name.get_group_as()
|
||||||
self.g.write('%s<last' % (' '*indent))
|
self.g.write('%s<last' % (' '*indent))
|
||||||
if p:
|
if p:
|
||||||
self.g.write(' prefix="%s"' % p)
|
self.g.write(' prefix="%s"' % escxml(p))
|
||||||
if g:
|
if g:
|
||||||
self.g.write(' group="%s"' % g)
|
self.g.write(' group="%s"' % escxml(g))
|
||||||
self.g.write('>%s</last>\n' % self.fix(n))
|
self.g.write('>%s</last>\n' % self.fix(n))
|
||||||
|
|
||||||
def write_line(self,tagname,value,indent=1):
|
def write_line(self,tagname,value,indent=1):
|
||||||
@ -927,7 +927,7 @@ class XmlWriter(UpdateCallback):
|
|||||||
if reporef.call_number == "":
|
if reporef.call_number == "":
|
||||||
callno_text = ''
|
callno_text = ''
|
||||||
else:
|
else:
|
||||||
callno_text = ' callno="%s"' % reporef.call_number
|
callno_text = ' callno="%s"' % escxml(reporef.call_number)
|
||||||
|
|
||||||
mtype = reporef.media_type.xml_str()
|
mtype = reporef.media_type.xml_str()
|
||||||
if mtype:
|
if mtype:
|
||||||
|
Loading…
Reference in New Issue
Block a user