aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/diff.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-24 10:59:20 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-24 10:59:20 -0500
commitd02bebf9909f3ada44719b1823c302f56cc0637e (patch)
treebbad9ef614e8e2ca173e3cb086815f9f4058ce6b /libbe/diff.py
parent69e595f71a6f1f3d393c2707d94508efceaf56aa (diff)
downloadbugseverywhere-d02bebf9909f3ada44719b1823c302f56cc0637e.tar.gz
Fix Diff.comment_body_change_string's difflib.unified_diff call
Diffstat (limited to 'libbe/diff.py')
-rw-r--r--libbe/diff.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbe/diff.py b/libbe/diff.py
index 94a2dc3..35e2151 100644
--- a/libbe/diff.py
+++ b/libbe/diff.py
@@ -671,4 +671,7 @@ class Diff (object):
return self._comment_summary_string(new_comment)
def comment_body_change_string(self, bodies):
old_body,new_body = bodies
- return difflib.unified_diff(old_body, new_body)
+ return ''.join(difflib.unified_diff(
+ old_body.splitlines(True),
+ new_body.splitlines(True),
+ 'before', 'after'))