From c8d45e8b8964cd04e55d3c0e6388dc630f736bb8 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 8 Oct 2007 19:45:06 +0000 Subject: [PATCH] 2007-10-08 Don Allingham * src/gen/lib/note.py: make independent of MarkupText.py svn: r9106 --- ChangeLog | 3 +++ src/gen/lib/note.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2416fdcb2..6601b27c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-10-08 Don Allingham + * src/gen/lib/note.py: make independent of MarkupText.py + 2007-10-08 Alex Roitman * src/GrampsCfg.py (get_researcher): Remove old usage. * src/gen/db/dbdir.py (__close_metadata): Store tuple; diff --git a/src/gen/lib/note.py b/src/gen/lib/note.py index 2b6be62ab..2bfc17011 100644 --- a/src/gen/lib/note.py +++ b/src/gen/lib/note.py @@ -41,9 +41,10 @@ from types import InstanceType #------------------------------------------------------------------------- from primaryobj import BasicPrimaryObject from notetype import NoteType -from MarkupText import ROOT_START_TAG, LEN_ROOT_START_TAG from markertype import MarkerType +ROOT_START_TAG = '' + #------------------------------------------------------------------------- # # Class for notes used throughout the majority of GRAMPS objects @@ -119,7 +120,7 @@ class Note(BasicPrimaryObject): """ 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) return text