From bc71f657e3a59fb4e5af4e89a7410c2278f17263 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 30 Mar 2020 10:02:53 -0400 Subject: [PATCH] Fix formatting on link_prefix --- gitsrht/blueprints/repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index 954f019..cf03d1c 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -59,8 +59,8 @@ def _highlight_file(repo, ref, name, data, blob_id, commit_id): if annotations: return json.loads(annotations.decode()) return None - link_prefix = url_for( - 'repo.tree', owner=repo.owner, repo=repo.name, ref=ref) + link_prefix = url_for('repo.tree', owner=repo.owner, + repo=repo.name, ref=ref) return get_highlighted_file("git.sr.ht:git", name, blob_id, data, formatter=AnnotatedFormatter(get_annos, link_prefix)) -- 2.38.4