Skip to content
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

[monitorlib/reports] Render newlines in string values #932

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BenjaminPelletier
Copy link
Member

monitorlib houses a Jinja2 macro to render complex dicts as interactive expandable/collapseable elements. This is used in many places, but one important place is representing queries in uss_qualifier reports. When troubleshooting, these queries will often have a stack trace value. But, because Jinja2 renders the string as HTML, newlines are ignored as plain whitespace. This PR addresses that narrow issue by replacing newlines with explicit HTML br elements so stack traces are easier to read.

@BenjaminPelletier BenjaminPelletier marked this pull request as ready for review February 5, 2025 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant