Skip to content

Commit dc05f85

Browse files
authored
Fix whitespace view in code
1 parent c24afa7 commit dc05f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/templates/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def template_source(request):
5757
source = format_html("<code>{}</code>", source)
5858
else:
5959
source = highlight(source, HtmlDjangoLexer(), HtmlFormatter())
60-
source = mark_safe(source)
60+
source = mark_safe(f"<code>{source}</code>")
6161

6262
content = render_to_string(
6363
"debug_toolbar/panels/template_source.html",

0 commit comments

Comments
 (0)