@WordPress Dev: Multiple Line breaks?
-
alright. i have been looking into this for about a week so far and still couldnt come up with a solution. so maybe someone could help me out here:
when using 2 line breaks (=> if i hit the “Enter” key twice), the HTML SOURCE CODE seems to get somewhat messed up:
<b>case 1: </b>(normal behavior)
entered text (there is ONE line break at the end of “text paragraph1”):text paragraph1 text paragraph1 text paragraph1.
text paragraph2 text paragraph2 text paragraph2wordpress html source:
text paragraph1 text paragraph1 text paragraph1.
text paragraph2 text paragraph2 text paragraph2<b>case 2:</b> (the problem is here)
entered text (there are TWO line breaks at the end of “text paragraph1”):text paragraph1 text paragraph1 text paragraph1
text paragraph2 text paragraph2 text paragraph2wordpress html source:
text paragraph1 text paragraph1 text paragraph1. text paragraph2 text paragraph2 text paragraph2
so – as you see – the line break tags are completely stripped from the source code if there are 2 line breaks – with only oe: no problem.
so i wondered, what function parses the strings and returns this data and maybe how to fix this behavior.
is this normal? a feature? bug?
thanks a lot in advance.
sid
demo: https://www.emolife.net/journal
- The topic ‘@WordPress Dev: Multiple Line breaks?’ is closed to new replies.