highlight: fix to work with caching templater
authorMatt Mackall <mpm@selenic.com>
Mon, 19 Apr 2010 16:47:44 -0500
changeset 10959 d1f4657f55e4
parent 10958 021d5ac3bec0
child 10960 ca739acf1a98
highlight: fix to work with caching templater
hgext/highlight/highlight.py
--- a/hgext/highlight/highlight.py	Mon Apr 19 16:47:44 2010 -0500
+++ b/hgext/highlight/highlight.py	Mon Apr 19 16:47:44 2010 -0500
@@ -23,7 +23,7 @@
 def pygmentize(field, fctx, style, tmpl):
 
     # append a <link ...> to the syntax highlighting css
-    old_header = ''.join(tmpl('header'))
+    old_header = tmpl.load('header')
     if SYNTAX_CSS not in old_header:
         new_header =  old_header + SYNTAX_CSS
         tmpl.cache['header'] = new_header