Browse Source

pygments call with ** unpacking needs a dict

main
Tinnet Coronam 14 years ago
parent
commit
685f3c7999
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hyde/ext/templates/jinja.py

+ 1
- 1
hyde/ext/templates/jinja.py View File

@@ -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)


Loading…
Cancel
Save