How to preserve formatting in generated output #1203
Answered
by
joerdav
stenersen-hb
asked this question in
Q&A
-
|
Hi, templ Test() { } The rendered output is
How can i preserve the linebreaks? Is there a setting for this? |
Beta Was this translation helpful? Give feedback.
Answered by
joerdav
Jun 25, 2025
Replies: 1 comment 2 replies
-
|
This isn't currently supported no. Do you have a particular usecase in mind? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have some unit tests where a more indented view of the HTML is better for readability. We just re-format it after the fact with github.com/a-h/htmlformat