From f864a324ac1499af7a2542ccb24443b389a179f5 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Wed, 4 Feb 2009 20:56:46 +0000 Subject: [PATCH] Fix import of note markers. Bug #2568 svn: r11855 --- src/plugins/ImportXml.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/ImportXml.py b/src/plugins/ImportXml.py index c0a6d3406..f8152ea79 100644 --- a/src/plugins/ImportXml.py +++ b/src/plugins/ImportXml.py @@ -1355,6 +1355,11 @@ class GrampsParser(UpdateCallback): self.info.add('merge-overwrite', NOTE_KEY, self.note) self.note.format = int(attrs.get('format', gen.lib.Note.FLOWED)) self.note.type.set_from_xml_str(attrs['type']) + # Old and new markers: complete=1 and marker=word both have to work + if attrs.get('complete'): # this is only true for complete=1 + self.note.marker.set(gen.lib.MarkerType.COMPLETE) + else: + self.note.marker.set_from_xml_str(attrs.get("marker", '')) # Since StyledText was introduced (XML v1.3.0) the clear text # part of the note is moved between tags.