• Occasionally (ok more than occasionally) old habits take over and I add an extra space after punctuation. I’ve been writing in the visual editor lately and I’ve noticed rather than strip that extra space after a period it adds a  ? tag, even when I switch to the HTML editor. As a result this causes formatting issues.

    Is this normal behavior for the visual editor, or could a theme/plugin be screwing with things? It used to be that I had to actually add the code   in the HTML editor to force additional spaces, but now that no longer seems to be true.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you used to have the box checked to correct invalid XHMTL errors checked?

    Admin Dashboard>Setings>Writing…

    Also check the DocType declaration for your site in source code. This may have been modified by a theme or plugin.

    Thread Starter Delete Me

    (@lincolnadams)

    No, I always keep that disabled.

    Doctype reads as:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" style="background-color: #000000;" dir="ltr" lang="en">
    Thread Starter Delete Me

    (@lincolnadams)

    It appears the visual editor is now preserving all whitespace instead of stripping them, even when you switch over to the HTML editor. When did it start doing this, or is it a bug?

    I’m experiencing this too. I use an old version of Microsoft OneNote (03) and I used to be able to paste in and it would strip the spaces. Now, even if I use the paste as plain text feature, it adds an annoying &nbsp.

    Anyone?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress not stripping extra spaces like it used to’ is closed to new replies.