From 685f3c7999d1f3d8ecaeb4e1827b77aa920272f1 Mon Sep 17 00:00:00 2001 From: Tinnet Coronam Date: Fri, 18 Feb 2011 19:17:16 +0100 Subject: [PATCH] pygments call with ** unpacking needs a dict --- hyde/ext/templates/jinja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyde/ext/templates/jinja.py b/hyde/ext/templates/jinja.py index bfe2d1b..c1e00ff 100644 --- a/hyde/ext/templates/jinja.py +++ b/hyde/ext/templates/jinja.py @@ -80,7 +80,7 @@ def syntax(env, value, lexer=None, filename=None): lexers.guess_lexer(value)) settings = {} if hasattr(env.config, 'syntax'): - settings = getattr(env.config.syntax, 'options', {}) + settings = dict(getattr(env.config.syntax, 'options', {})) formatter = formatters.HtmlFormatter(**settings) code = pygments.highlight(value, pyg, formatter)