From 62da3ebc08949d60a9d7b6ce84d9fe6ed68110db Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Wed, 14 Nov 2012 00:48:46 +0000 Subject: Use heuristics to decide what to colorize In practise pygments seems to have a very hard time processing large files and files with long lines, so try to avoid using it in those cases. Signed-off-by: Alberto Bertogli --- views/commit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/commit.html') diff --git a/views/commit.html b/views/commit.html index 9a9e99d..bc3119c 100644 --- a/views/commit.html +++ b/views/commit.html @@ -55,7 +55,7 @@
-% if has_colorizer(): +% if can_colorize(c.diff.body): {{!colorize_diff(c.diff.body)}} % else:
-- 
cgit v1.2.3