diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2012-11-14 01:48:46 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2012-11-18 15:55:22 +0100 |
commit | 62da3ebc08949d60a9d7b6ce84d9fe6ed68110db (patch) | |
tree | d94cf05ed4cc34ebdeb8413d7ed59887f082ef62 /views/commit.html | |
parent | ba3b2132f5ffa852579734a350104a719f654b64 (diff) | |
download | git-arr-fork-62da3ebc08949d60a9d7b6ce84d9fe6ed68110db.zip |
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 <albertito@blitiri.com.ar>
Diffstat (limited to 'views/commit.html')
-rw-r--r-- | views/commit.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <hr/> -% if has_colorizer(): +% if can_colorize(c.diff.body): {{!colorize_diff(c.diff.body)}} % else: <pre class="diff-body"> |