From 5999f7c0a1ffc538da37b39208f102aab3aa03cc Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Tue, 14 May 2013 15:02:57 +0000 Subject: [PATCH] 0006394: GEDCOM import errors truncated too much. Error message extended to 66 chars as suggested (and continuation lines formatted to fall under initial line) svn: r22295 --- gramps/plugins/lib/libgedcom.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 7c5658aef..849d81f83 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -2985,11 +2985,13 @@ class GedcomParser(UpdateCallback): if problem != "": self.number_of_errors += 1 if line: - problem = problem.ljust(33)[0:32] + prob_width = 66 + problem = problem.ljust(prob_width)[0:(prob_width-1)] + text = str(line.data).replace("\n", "\n".ljust(prob_width + 22)) message = "%s Line %5d: %s %s %s\n" % (problem, line.line, line.level, line.token_text, - line.data) + text) else: message = problem + "\n" if state: