diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py
--- a/rhodecode/lib/helpers.py
+++ b/rhodecode/lib/helpers.py
@@ -217,11 +217,11 @@ class CodeHtmlFormatter(HtmlFormatter):
'
| ')
+ ls + ' | ')
else:
yield 0, ('' % self.cssclass +
' | ')
+ ls + ' | ')
yield 0, dummyoutfile.getvalue()
yield 0, ' | '
@@ -252,7 +252,7 @@ def pygmentize_annotation(repo_name, fil
golden_ratio = 0.618033988749895
h = 0.22717784590367374
- for c in xrange(n):
+ for _ in xrange(n):
h += golden_ratio
h %= 1
HSV_tuple = [h, 0.95, 0.95]
diff --git a/rhodecode/templates/files/files_annotate.html b/rhodecode/templates/files/files_annotate.html
--- a/rhodecode/templates/files/files_annotate.html
+++ b/rhodecode/templates/files/files_annotate.html
@@ -73,24 +73,63 @@
${_('Binary file (%s)') % c.file.mimetype}
%else:
% if c.file.size < c.cut_off_limit:
- ${h.pygmentize_annotation(c.repo_name,c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
+ ${h.pygmentize_annotation(c.repo_name,c.file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
%else:
${_('File is to big to display')} ${h.link_to(_('show as raw'),
h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
%endif
-
+
%endif
+
diff --git a/rhodecode/templates/files/files_source.html b/rhodecode/templates/files/files_source.html
--- a/rhodecode/templates/files/files_source.html
+++ b/rhodecode/templates/files/files_source.html
@@ -51,12 +51,11 @@
${_('File is to big to display')} ${h.link_to(_('show as raw'),
h.url('files_raw_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))}
%endif
-
%endif
@@ -86,12 +95,79 @@
\ No newline at end of file
|