Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Can you provide some more details? If you are switching to and from the text and visual editor then that will strip out your HTML.
If one only leaves the first and last div, things work fine. And yes switching from text and visual editor, changes things aswell.
Was there any particular item you wondered about?
Peace Be With You.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
So you have the answer as to why line-spaces and enters are removed, from Alchymyth.
Linespaces and return carriages don’t matter with HTML,
E.g
<div>
<p> ... </p>
</div>
Is the equivalent of
<div><p> ... </p></div>
It seems the visual editor is doing this. If you switch to “html” editor, after the visual has stripped the linecarriages, exit the edit without save, and re-edit it goes directly to “html” editor, without stripping the linespaces.
Peace Be With You.
Fixed in 3.5.1. Excellent!
Peace Be With You.