Welcome! » Log In » Create A New Profile

Single newlines being removed between tags?

Posted by Nickno 
Nickno
Single newlines being removed between tags?
June 08, 2018 03:02PM

Been looking through the documentation and configuration options and can't seem to find anything referring to this. I notice if your input has new lines in between nested tags, such as between the beginning of the ul and li in:

<ul>
<li>test</li>
</ul>

Using the default configuration, it will output:

<ul><li>test</li>
</ul>

For my purposes I would like to be able to retain new lines in between these for readability, as it gets more confusing to look at as you make it more complex, such as this:

<div>
<ul>
<li>test</li>
</ul>
</div>

turning into this:

<div>
<ul><li>test</li>
</ul></div>

Playing around with the demo, I found that this problem goes away when toggling Core.CollectErrors to true. This seems to work as a solution to my problem, but I feel like this is an unintended effect, and would hate to rely on it only for it to get patched out later.

Sorry, you do not have permission to post/reply in this forum.