projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e595f
)
Fix Diff.comment_body_change_string's difflib.unified_diff call
author
W. Trevor King
<wking@drexel.edu>
Sun, 24 Jan 2010 15:59:20 +0000
(10:59 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Sun, 24 Jan 2010 15:59:20 +0000
(10:59 -0500)
libbe/diff.py
patch
|
blob
|
history
diff --git
a/libbe/diff.py
b/libbe/diff.py
index 94a2dc3f456db681ef8da9a421b054a715f587be..35e2151207c612a235bb6997670079686092d3fc 100644
(file)
--- 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'))