Formatter: Better support for explicit line breaks #3641
sporto
started this conversation in
Ideas & suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When writing html, it is common to have line breaks for block elements. This makes the code easier to scan.
e.g.
However when converted to Gleam, something like this ends up being
The shape of the code seldom matches the shape you would have on manual written html.
e.g. people don't write this:
I really like using functions for html, but the formatting makes the html difficult to understand. I think that if the formatter would respect my line breaks, it would contribute to remove strangest budget.
Related issue #1117
Beta Was this translation helpful? Give feedback.
All reactions