Bug #2902: Fix problem with notes in geneweb export

svn: r12426
This commit is contained in:
Gary Burton 2009-04-10 10:35:47 +00:00
parent 25864a5d16
commit 29bf07cb1c

View File

@ -4,6 +4,7 @@
# Copyright (C) 2004 Martin Hawlisch # Copyright (C) 2004 Martin Hawlisch
# Copyright (C) 2004-2006, 2008 Donald N. Allingham # Copyright (C) 2004-2006, 2008 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2009 Gary Burton
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -272,7 +273,7 @@ class GeneWebWriter:
note = "" note = ""
for notehandle in notelist: for notehandle in notelist:
noteobj = self.db.get_note_from_handle(notehandle) noteobj = self.db.get_note_from_handle(notehandle)
note += noteobj.get(False) note += noteobj.get()
note += " " note += " "
if note and note != "": if note and note != "":
note = note.replace('\n\r',' ') note = note.replace('\n\r',' ')