##// END OF EJS Templates
highlight: fix to work with caching templater
Matt Mackall -
r10959:d1f4657f default
parent child Browse files
Show More
@@ -23,7 +23,7 b' SYNTAX_CSS = (\'\\n<link rel="stylesheet" '
23 def pygmentize(field, fctx, style, tmpl):
23 def pygmentize(field, fctx, style, tmpl):
24
24
25 # append a <link ...> to the syntax highlighting css
25 # append a <link ...> to the syntax highlighting css
26 old_header = ''.join(tmpl('header'))
26 old_header = tmpl.load('header')
27 if SYNTAX_CSS not in old_header:
27 if SYNTAX_CSS not in old_header:
28 new_header = old_header + SYNTAX_CSS
28 new_header = old_header + SYNTAX_CSS
29 tmpl.cache['header'] = new_header
29 tmpl.cache['header'] = new_header
General Comments 0
You need to be logged in to leave comments. Login now