WordPress.org

Support

Support » How-To and Troubleshooting » @WordPress Dev: Multiple Line breaks?

@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 paragraph2

    wordpress 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 paragraph2

    wordpress 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: http://www.emolife.net/journal

Viewing 2 replies - 1 through 2 (of 2 total)
  • TechGnome
    Moderator

    @techgnome

    strange because that isn’t the same experience I get. If I hit enter once at the end of the line, I get a br tag, as expected, but with two enter presses, I get p tags as expected… one to close the previous para, and one to start the new one….
    Things to check for, what plugins do you have? Maybe there’s one that is stripping them out for some reason?
    TG

    i only have livepress installed – but thanks for the info. maybe thatll help me with tracking down this behavior!
    rock on.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘@WordPress Dev: Multiple Line breaks?’ is closed to new replies.