• Hi,

    I just ran into the weirdest Line Break < br > issue.
    To make it short: on the same page, the line break might work for some sentences and not for others.

    I’m running on WordPress 4.9.8 with Gutenberg.
    It’s something that only just happened. I didn’t get such an issue with previous article.
    I did not install new plugins or a new version of wordpress.

    I find it absolutely amazing how the code within a same page can randomly work or not.
    I tried writing other posts and now they run into that issue as well.
    I tried displaying the page with different browsers and computers (PC and Mac). Doesn’t change a thing.
    I tried writing using different browsers and computers. Doesn’t change a thing
    I tried writing using the classical editor. Doesn’t change a thing.
    Wait, it gets better
    I tried changing < br > with < \ br > or even < br class=”” >. Doesn’t change a thing.
    I tried typing the same text above, under, anywhere else in the article. Doesn’t change a thing.
    I tried writing on the computer’s notepad and copy/past. It worked!… for 1 out of 5 sentences…

    I am… amazed by what’s going on.

    Anyone has a suggestion?
    I’m tempted to change templates just to see what would happen

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, beijadventures

    The tag <br> does not include the space like < br >. However if your tag <br> does not run exactly, you can use the tag <p> like

    
    <p>Your text</p>
    
    • This reply was modified 6 years, 5 months ago by longnguyen.
    Thread Starter beijadventures

    (@beijadventures)

    Yes, I know there’s no space… I put a space thinking it wouldn’t properly publish on my comment otherwise.
    And no, the <p> tag is not the same as the <br> tag. The <p> tag creates a line space. I want a line break.

    I don’t mean to be mean, but that was a pretty useless answer…

    Thread Starter beijadventures

    (@beijadventures)

    /!\ UPDATE
    It’s not the template. It’s not the plugins either.

    I’m really starting to believe Gutenberg might be the issue.
    I have an another website without Gutenberg installed and it works properly.

    I just encountered the same or related issue: Since today (no new plugins, no configuration changes), “shift-enter” does not work in gutenberg anymore.

    I often use it in bullet lists, when I want something (like a link) on a new line, without creating a new bullet. I have a page where I used it frequently (always in gutenberg, just with shift-enter): https://blog.schucan.com/startpunkt/

    Today, this stopped working altogether. shift-enter is just like enter, i.e. no “br”, but a new paragraph, hence a new bullet in my usecase.

    How to fix this?

    Hey, just try using div tag to enclose the lines you wants to break, like :

    Hello World one
    Hello World two

    <div>Hello World one</div>
    <div>Hello World two</div>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Weird Line Break BR issue’ is closed to new replies.