I donβt think you can do something regarding line breaks. Formatting is performed in accordance with the source file after compilation and visualization from the server side.
The end-user effect in terms of layout is nothing, since its not a html line break: <br>
You can put the server side code according to the example below, which will stop the line spacing:
a<br/>@{ /*some code 1 that does not produce a line break*/} b<br /> c<br /> @{ /*some code 2 that does produce line breaks*/ } d<br /> e<br />
this will result in the following:
a<br /> b<br /> c<br /> d<br /> e<br />
source share