X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b9055c7fc8caed025fd28c12532bd462edb8c78d..1ca6d764bb26082e103bfa81e586de5ee43eef02:/apps/wiki/nice_diff.py?ds=sidebyside diff --git a/apps/wiki/nice_diff.py b/apps/wiki/nice_diff.py index b228fad9..19ad602c 100644 --- a/apps/wiki/nice_diff.py +++ b/apps/wiki/nice_diff.py @@ -19,11 +19,11 @@ def diff_replace(match): def filter_line(line): - return DIFF_RE.sub(diff_replace, html_escape(line)).replace('\x01', '') + return DIFF_RE.sub(diff_replace, html_escape(line)).replace('\x01', '') def format_changeset(a, b, change): - return (a[0], filter_line(a[1]), b[0], filter_line(b[1]), change) + return a[0], filter_line(a[1]), b[0], filter_line(b[1]), change def html_diff_table(la, lb, context=None):