hgext/highlight/highlight.py
changeset 10959 d1f4657f55e4
parent 10394 4612cded5176
child 18054 b35e3364f94a
--- 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