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 3 replies
-
|
This isn't currently supported no. Do you have a particular usecase in mind? |
Beta Was this translation helpful? Give feedback.
3 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