# HG changeset patch # User Matt Mackall # Date 1271713664 18000 # Node ID d1f4657f55e4a649808212c762743e90f84445d1 # Parent 021d5ac3bec04a6bf0f701464d90fdbaff172d40 highlight: fix to work with caching templater diff -r 021d5ac3bec0 -r d1f4657f55e4 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 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