merge from master again

This commit is contained in:
Ronny Pfannschmidt
2016-06-22 16:03:52 +02:00
6 changed files with 43 additions and 5 deletions

View File

@@ -225,9 +225,10 @@ def _diff_text(left, right, verbose=False):
'characters in diff, use -v to show') % i]
left = left[:-i]
right = right[:-i]
keepends = True
explanation += [line.strip('\n')
for line in ndiff(left.splitlines(),
right.splitlines())]
for line in ndiff(left.splitlines(keepends),
right.splitlines(keepends))]
return explanation