# HG changeset patch # User Matt Mackall # Date 2010-04-19 21:47:44 # Node ID d1f4657f55e4a649808212c762743e90f84445d1 # Parent 021d5ac3bec04a6bf0f701464d90fdbaff172d40 highlight: fix to work with caching templater diff --git a/hgext/highlight/highlight.py b/hgext/highlight/highlight.py --- a/hgext/highlight/highlight.py +++ b/hgext/highlight/highlight.py @@ -23,7 +23,7 @@ SYNTAX_CSS = ('\n 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