aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/diff.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-24 11:22:53 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-24 11:22:53 -0500
commit9e566087db878ee9420faaa422e5e3ea9bce724e (patch)
tree19fcc72835c749f5bc607fe5aac9e76e54794b82 /libbe/diff.py
parent4ea7a28e1bd97df5997b5f884378bd7d64edff6e (diff)
parent53074356bf715c820d3b9b852cd45e5073ba765d (diff)
downloadbugseverywhere-9e566087db878ee9420faaa422e5e3ea9bce724e.tar.gz
Merged be.doc documentation rewrite + bugfixes + new bugs
Highlights: * Fix broken Diff.comment_body_change_string implementation. * Fix List --severity handling, added --important * Fix `be target --help` * Fix non-text/plain `be comment` code and added 'Created comment...' output
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'))