Skip to content

Commit

Permalink
Fix whitespace view in code
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayfulla authored Dec 22, 2024
1 parent c24afa7 commit dc05f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/panels/templates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def template_source(request):
source = format_html("<code>{}</code>", source)
else:
source = highlight(source, HtmlDjangoLexer(), HtmlFormatter())
source = mark_safe(source)
source = mark_safe(f"<code>{source}</code>")

content = render_to_string(
"debug_toolbar/panels/template_source.html",
Expand Down

0 comments on commit dc05f85

Please sign in to comment.