Fix bug:
This commit is contained in:
parent
1c0686e30a
commit
13b1d54ac3
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@ else:
|
|||
if linenos:
|
||||
return mark_safe(
|
||||
pygments.highlight(
|
||||
code, lexer, HtmlCodeFormatter(cssclass=cssclass, linenos="table", wrapcode=True)
|
||||
code, lexer, pygments.formatters.HtmlFormatter(cssclass=cssclass, linenos="table", wrapcode=True)
|
||||
)
|
||||
)
|
||||
return mark_safe(
|
||||
pygments.highlight(code, lexer, HtmlCodeFormatter(cssclass=cssclass, wrapcode=True))
|
||||
pygments.highlight(code, lexer, pygments.formatters.HtmlFormatter(cssclass=cssclass, wrapcode=True))
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue