* src/WriteXML.py (write_witness): Proper witness reference.
* src/ReadXML.py (start_witness): Initialize empty comment. svn: r4543
This commit is contained in:
parent
4763eabff6
commit
ffc5f987e9
@ -19,6 +19,9 @@
|
||||
|
||||
* src/data/tips.xml: Update tips.
|
||||
|
||||
* src/WriteXML.py (write_witness): Proper witness reference.
|
||||
* src/ReadXML.py (start_witness): Initialize empty comment.
|
||||
|
||||
2005-05-10 Julio Sanchez <jsanchez@users.sourceforge.net>
|
||||
* src/po/es.po: Updated translation
|
||||
* src/plugins/rel_es.py: Revert to more conservative relationships
|
||||
|
@ -650,6 +650,7 @@ class GrampsParser:
|
||||
|
||||
def start_witness(self,attrs):
|
||||
self.in_witness = 1
|
||||
self.witness_comment = ""
|
||||
if attrs.has_key('hlink'):
|
||||
self.witness = RelLib.Witness(RelLib.Event.ID,attrs['hlink'])
|
||||
elif attrs.has_key('ref'):
|
||||
|
@ -477,15 +477,13 @@ class XmlWriter:
|
||||
sp = " "*index
|
||||
com = self.fix(w.get_comment())
|
||||
if w.get_type() == RelLib.Event.ID:
|
||||
self.g.write('%s<witness>\n' % sp)
|
||||
self.g.write(' %s<hlink>%s</hlink>\n' % (sp,w.get_value()))
|
||||
self.g.write('%s<witness hlink="%s">\n' % (sp,w.get_value()))
|
||||
if com:
|
||||
self.g.write(' %s<comment>%s</comment>\n' % (sp,com))
|
||||
self.g.write('%s</witness>\n' % sp)
|
||||
else:
|
||||
nm = self.fix(w.get_value())
|
||||
self.g.write('%s<witness>\n' % sp)
|
||||
self.g.write(' %s<name>%s</name>\n' % (sp,nm))
|
||||
self.g.write('%s<witness name="%s">\n' % (sp,nm))
|
||||
if com:
|
||||
self.g.write(' %s<comment>%s</comment>\n' % (sp,com))
|
||||
self.g.write('%s</witness>\n' % sp)
|
||||
|
Loading…
Reference in New Issue
Block a user