changeset 10959:d1f4657f55e4

highlight: fix to work with caching templater
author Matt Mackall <mpm@selenic.com>
date Mon, 19 Apr 2010 16:47:44 -0500
parents 021d5ac3bec0
children ca739acf1a98
files hgext/highlight/highlight.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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