-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template panel does not render <script> tag correctly #2041
Comments
We're using pygments for the highlighting (if it's available!) It seems that we're not applying the appropriate style to whitespace elements ( |
I've updated the code as follows: source = mark_safe(f"<code>{source}</code>") file: debug_toolbar/panels/templates/views.py#L60 Result:What do you think about implementing it this way? @matthiask If this approach looks good to you, I'll create a PR. |
Issue:
There is an issue with rendering
<script></script>
tags in the template panel. The template source incorrectly removes spaces(tabs) within the script tags, which causes the content to render incorrectly.Expected Behavior:
The
<script></script>
tags should render correctly with all spaces(tabs) intact, allowing for proper functionality.The text was updated successfully, but these errors were encountered: