From d016cc5775d348fd4d618fb94e96028402a3f094 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 13 Jul 2004 03:08:35 +0000 Subject: [PATCH] * src/plugins/ReadGedcom.py (GedcomParser.__init__): Use universal newline mode to work with Mac newlines. svn: r3269 --- gramps2/ChangeLog | 2 ++ gramps2/src/plugins/ReadGedcom.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 7e748d499..64db052b3 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -3,6 +3,8 @@ * src/plugins/WriteGedcom.py: Switch from radiobuttons to menu for the encoding choice. * src/plugins/gedcomexport.glade: Clean up interface. + * src/plugins/ReadGedcom.py (GedcomParser.__init__): Use + universal newline mode to work with Mac newlines. 2004-07-11 Don Allingham * src/FamilyView.py: handle deleting of parent properly diff --git a/gramps2/src/plugins/ReadGedcom.py b/gramps2/src/plugins/ReadGedcom.py index d0bdc9d17..11663d897 100644 --- a/gramps2/src/plugins/ReadGedcom.py +++ b/gramps2/src/plugins/ReadGedcom.py @@ -220,7 +220,7 @@ class GedcomParser: self.is_ftw = 0 self.idswap = {} - self.f = open(file,"r") + self.f = open(file,"rU") self.filename = file self.index = 0 self.backoff = 0