We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc05f85 commit 8fd4841Copy full SHA for 8fd4841
debug_toolbar/panels/templates/views.py
@@ -56,8 +56,8 @@ def template_source(request):
56
except ModuleNotFoundError:
57
source = format_html("<code>{}</code>", source)
58
else:
59
- source = highlight(source, HtmlDjangoLexer(), HtmlFormatter())
60
- source = mark_safe(f"<code>{source}</code>")
+ source = highlight(source, HtmlDjangoLexer(), HtmlFormatter(wrapcode=True))
+ source = mark_safe(source)
61
62
content = render_to_string(
63
"debug_toolbar/panels/template_source.html",
0 commit comments