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
This commit is contained in:
Tim G L Lyons 2013-05-14 15:02:57 +00:00
parent 49645c6957
commit 5999f7c0a1

View File

@ -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: