WordPress.org

Forums

@WordPress Dev: Multiple Line breaks? (3 posts)

  1. xsidx
    Member
    Posted 10 years ago #

    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

  2. TechGnome
    Moderator
    Posted 10 years ago #

    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

  3. xsidx
    Member
    Posted 10 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.