This commit is contained in:
cuom1999 2022-09-15 13:00:49 -05:00
parent 1c0686e30a
commit 13b1d54ac3

View file

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