aI have a relatively sophisticated model that I need to render in HTML.
The problem I have is that a single line from the model could be significantly long and this will make the HTML code hard to read. Indenting separate tags does not work because it will create undesired spaces in the middle of the data.
For example if I have data that renders like:
<p style="..."><span style="...">...</span><span style="...">...</span><span style="...">...</span><span style="...">...</span></p>
something like
<p
style="..."><span
style="...">...</span><span
style="...">...</span><span
style="...">...</span><span
style="...">...</span>
</p>
The problem with this is obvious, the opening tag is at the end of the previous line.
Is there a better option to achieve this?