2007-03-13 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/RelLib/_Note.py: import const from MarkupText module * src/MarkupText.py: use actions instead of widgets on the interface; new helper functions * src/Editors/_EditNote.py: move widgets out to glade; implement new MarkupText buffer interface; use uimanager/toolbar for formatting * src/glade/gramps.glade: edit_note update svn: r8292
This commit is contained in:
@ -40,6 +40,7 @@ import re
|
||||
#-------------------------------------------------------------------------
|
||||
from _BasicPrimaryObject import BasicPrimaryObject
|
||||
from _NoteType import NoteType
|
||||
from MarkupText import ROOT_START_TAG, LEN_ROOT_START_TAG
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -114,7 +115,7 @@ class Note(BasicPrimaryObject):
|
||||
"""
|
||||
text = self.text
|
||||
|
||||
if not markup and text[0:8] == '<gramps>':
|
||||
if not markup and text[0:LEN_ROOT_START_TAG] == ROOT_START_TAG:
|
||||
text = self.delete_tags(text)
|
||||
|
||||
return text
|
||||
|
Reference in New Issue
Block a user