• I don’t know why, but WP editor is not properly adding line breaks on “enter” for new paragraph.

    This is happening all the time when I make new new posts.

    Example:
    https://www.logicweb.com/knowledgebase/cpanel/install-memcached-on-a-cpanel-server/

    All the way down, “source” line is not breaking into it’s own new line. See attached screenshot. https://imgur.com/kag7LfT

    This is how it looks in text mode in the default editor, and note that this is happening with many other posts I’ve made.

    Once the Memcached PHP extensions have been installed, restart Memcached by running the following command:
    <pre>systemctl restart memcached</pre>
    More information on installing and configuring Memcached in cPanel can be found here:
    
    <a href=https://blog.cpanel.com/memcached-php-applications-for-faster-web-apps/ target="_blank" rel="noopener">cPanel Blog - Memcached PHP Applications for Faster Web Apps</a>
    
    source: https://support.cpanel.net/hc/en-us/articles/1500003996681-How-to-install-and-configure-Memcached
    
    </section>

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • I just tested this on a new sandbox site with both the default (Gutenberg) editor and the Classic Editor plugin. In both instances, line break <br> and paragraph <p> tags were added appropriately.

    So something in your environment must be causing this… except I don’t know your site’s setup and can’t say what might be causing this.

    If you’re working in a dev environment, you may want to disable all plugins and re-enable them one by one until you find the culprit. On a live site, use the Health Check & Troubleshooting plugin so the public site isn’t affected while you troubleshoot this.

    Hi @chadi

    I am not sure what WordPress version are you running, older versions may have security bugs in them, so consider running the latest.

    About your issue, wpautop is a filter that’s applied on content, which converts double line breaks into <p> paragraphs. I don’t see any issue on the actual link but perhaps some plugin or some code in your theme is removing that filter which can cause the issue you are describing.

    @ashfame: OP is on latest 5.8 already.

    And here’s a hint to find the WP version if the generator tag is removed: open the RSS feed address in the browser. The WP version will be there ??

    @gappiah Nice tip! I had forgotten about that. The screenshot looked unfamiliar so I thought perhaps it was an old version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No Proper Line Breaks’ is closed to new replies.