2007-10-08 Don Allingham <don@gramps-project.org>
* src/gen/lib/note.py: make independent of MarkupText.py svn: r9106
This commit is contained in:
parent
e5fb6a7c40
commit
c8d45e8b89
@ -1,3 +1,6 @@
|
|||||||
|
2007-10-08 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/gen/lib/note.py: make independent of MarkupText.py
|
||||||
|
|
||||||
2007-10-08 Alex Roitman <shura@gramps-project.org>
|
2007-10-08 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/GrampsCfg.py (get_researcher): Remove old usage.
|
* src/GrampsCfg.py (get_researcher): Remove old usage.
|
||||||
* src/gen/db/dbdir.py (__close_metadata): Store tuple;
|
* src/gen/db/dbdir.py (__close_metadata): Store tuple;
|
||||||
|
@ -41,9 +41,10 @@ from types import InstanceType
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from primaryobj import BasicPrimaryObject
|
from primaryobj import BasicPrimaryObject
|
||||||
from notetype import NoteType
|
from notetype import NoteType
|
||||||
from MarkupText import ROOT_START_TAG, LEN_ROOT_START_TAG
|
|
||||||
from markertype import MarkerType
|
from markertype import MarkerType
|
||||||
|
|
||||||
|
ROOT_START_TAG = '<gramps>'
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Class for notes used throughout the majority of GRAMPS objects
|
# Class for notes used throughout the majority of GRAMPS objects
|
||||||
@ -119,7 +120,7 @@ class Note(BasicPrimaryObject):
|
|||||||
"""
|
"""
|
||||||
text = self.text
|
text = self.text
|
||||||
|
|
||||||
if not markup and text[0:LEN_ROOT_START_TAG] == ROOT_START_TAG:
|
if not markup and text.starts_with(ROOT_START_TAG):
|
||||||
text = self.delete_tags(text)
|
text = self.delete_tags(text)
|
||||||
|
|
||||||
return text
|
return text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user