# HG changeset patch # User Mads Kiilerich # Date 2016-09-25 17:21:07 # Node ID e55041bb358551b460c5d7c0503ca17c3bb7c948 # Parent 39a59e6915bb398b42c3c2a63c48a950e9d63b55 diff: don't make '...' a broken link - it doesn't do anything so don't make it a link It would be nice if it could expand it and increase the context size like bitbucket does ... but that would be a bigger change. diff --git a/kallithea/lib/diffs.py b/kallithea/lib/diffs.py --- a/kallithea/lib/diffs.py +++ b/kallithea/lib/diffs.py @@ -731,7 +731,7 @@ class DiffProcessor(object): }) _html.append('''%(link)s''' % { - 'link': _link_to_if(True, change['old_lineno'], + 'link': _link_to_if(not no_lineno, change['old_lineno'], '#%s' % anchor_old) }) _html.append('''\n''')