Humanize markdown diffs

remotes/origin/enhancement/email-actions
David Barragán Merino 2014-08-21 16:32:25 +02:00
parent 0eb6311f85
commit 12c10034a7
1 changed files with 3 additions and 2 deletions

View File

@ -112,7 +112,8 @@ class DiffMatchPatch(diff_match_patch.diff_match_patch):
def get_diff_of_htmls(html1, html2):
diffutil = DiffMatchPatch()
diff = diffutil.diff_main(html1, html2)
return diffutil.diff_pretty_html(diff)
diffs = diffutil.diff_main(html1, html2)
diffutil.diff_cleanupSemantic(diffs)
return diffutil.diff_pretty_html(diffs)
__all__ = ["render", "get_diff_of_htmls", "render_and_extract"]