2006-09-04 Don Allingham <don@gramps-project.org>

* src/GrampsDb/_ReadGedcom.py: don't delete tabs
	* src/DisplayTabs/_NoteTab.py: allow tabs to be entered



svn: r7302
This commit is contained in:
Don Allingham 2006-09-04 17:18:30 +00:00
parent 81e5d2a251
commit 2d4d9c84c4
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2006-09-04 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: don't delete tabs
* src/DisplayTabs/_NoteTab.py: allow tabs to be entered
2006-09-03 Don Allingham <don@gramps-project.org>
* src/ScratchPad.py: add dnd support for MediaRefs (bug #417)
* src/DdTargets.py: add dnd support for MediaRefs (bug #417)

View File

@ -77,6 +77,8 @@ class NoteTab(GrampsTab):
vbox = gtk.VBox()
self.text = gtk.TextView()
self.text.set_accepts_tab(True)
self.flowed = gtk.RadioButton(None, _('Flowed'))
self.format = gtk.RadioButton(self.flowed, _('Formatted'))

View File

@ -149,7 +149,7 @@ _event_family_str = _("%(event_name)s of %(family)s")
_event_person_str = _("%(event_name)s of %(person)s")
_transtable = string.maketrans('','')
_delc = _transtable[0:31]
_delc = _transtable[0:8] + _transtable[10:31]
_transtable2 = _transtable[0:128] + ('?' * 128)
#-------------------------------------------------------------------------
@ -959,8 +959,7 @@ class GedcomParser(UpdateCallback):
source.add_attribute(a)
def func_source_text(self, matches, source, level):
note = source.get_note()
source.set_note(note.strip())
source.set_note(matches[2])
def func_source_note(self, matches, source, level):
note = self.parse_note(matches, source, level+1, '')