X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/00a90d6175599e055f5a84697c8388d81ac1b007..5e942ab9a9a217a8482a324c3e61fdd83c1c4247:/apps/wiki/nice_diff.py diff --git a/apps/wiki/nice_diff.py b/apps/wiki/nice_diff.py old mode 100755 new mode 100644 index b228fad9..19ad602c --- 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):