From 13b1d54ac3cd0be1c9cf300e5b83fe5c98bcbcaf Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 15 Sep 2022 13:00:49 -0500 Subject: [PATCH] Fix bug: --- judge/highlight_code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/highlight_code.py b/judge/highlight_code.py index 979eebf..5d9add3 100644 --- a/judge/highlight_code.py +++ b/judge/highlight_code.py @@ -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)) )