How do I solve problems with spacing between lines and two spaces after a sentence

  • I am the programer for this blog, not the author. There are two problems I am having. One is ongoing, one is new.

    1) Line spacing between paragraphs.

    I have always had random problems with extra spacing between paragraphs. Sometimes the code changes or disappears when I switch between the visual and text editor, and sometimes when I preview the page the code changes or isn’t recognized.

    Sometimes I have to use a non-breaking space tag, sometimes I have to use a break tag, and sometimes just hitting a hard return in the Visual editor works to get an extra space. Sometimes the coding goes away completely when switching from Visual to Text Editor, or I have to program them a different way.

    Tonight when I was posting a new blog, the non-breaking space codes stayed just fine, but sometimes when I previewed the post, the hard returns would disappear completely and the paragraphs would bunch up. The code displayed fine in text mode, fine in Visual mode, but would not reflect correctly when I previewed.

    2) Problems with two characters spaces after a period.

    Also, tonight an additional problem has come up. These blogs are sent to me by email, and I copy and paste the text into the editor. The original text has two spaces before a new sentence. Of course, the browser has always removed those extra spaces with no problem. Tonight, the two spaces were not only posting on the blog, but were causing line problems by adding an extra space after a line break so the text appeared jagged on the left.

    Is there a possibility this is the template acting up and not a problem with WordPress? I’d be happy to switch to a more stable template if this is the problem. I don’t mind a bit of hand-coding, but nothing is stable. The code disappears between edits, or sometimes one code works and another one won’t. I wanted to email WordPress, but apparently my question is going to be posted to the forum.

    Thank you for any advice you guys have.

    The blog I need help with is: (visible only to logged in users)

  • If you are copying and pasting from a word processing document like Microsoft WORD please read this https://en.forums.wordpress.com/topic/the-paste-as-word-button-has-been-removed-from-the-visual-editor?replies=3

    Whether or not you are copying and pasting go to > Dashboard > Settings > Writing and enable this setting:
    Formatting
    __ WordPress should correct invalidly nested XHTML automatically
    “save changes”

    Blog editors and word processors are not the same and do not work the same way. The web standard is one blank line only, so you cannot add more blank lines by pressing return repeatedly like you would do with a typewriter or in a word processing application. If you want to learn how to format and space your posts and pages see:
    http://onecoolsitebloggingtips.com/2011/09/13/wordpress-formatting-and-spacing/

    See also: http://en.support.wordpress.com/advanced-html/

    P.S. When you create a new post, always make sure the Format tool is set to Paragraph before you start typing. It’s in the Visual editor Row 2 first position “style”. See the illustration here http://en.support.wordpress.com/visual-editor/#row-2 If you forget to do that then edit the post, highlight all in the Visual editor, select Paragraph from the Format tool, switch editor to Text then switch back to Visual and click Update.

  • Thank you for your response.

    -I’m aware of the problems from posting from Microsoft – I always post the text in the plain text editor to remove any stray formatting that would pop up in the visual editor.

    – I will try the XHTML setting you suggested and see if that changes anything.

    – I know Blog editors and word processors are not the same. I know HTML coding – my frustration is there are coding problems every time. I have to code things a different way each time.

    – Thank you for the additional links, however, they not only contradict each other, they contradict your suggestion that “you cannot add more blank lines by pressing return repeatedly like you would do with a typewriter or in a word processing application.”
    In the Onecoolsitebloggingtips.comarticle, it states:
    “In every theme here of which I’m aware, you will get double spacing between paragraphs. A single click of ENTER will give you a double spaced line.”
    and
    “If you are working in the Text HTML editor, a single click of ENTER will give you a single-spaced line, and two clicks of ENTER will result in double spaced lines.”
    and
    “When you get to the end of a stanza and want a blank line between, just click ENTER once.”

    The WordPress article link states:
    “The Visual editor leaves one blank line between each paragraph by default. If you attempt to add additional line breaks using the “enter” or “return” key, those spaces will be stripped out when you publish.”

    Which is obviously different than the other article suggests.

    The WordPress article does say to use a non-breaking space code ” ” to add extra lines, and it does say that switching back and forth between visual and text editor will erase that code – but in my experience it doesn’t sometimes. Sometimes the non-breaking space code stays.

    I’m not nit-picking your response, I’m just letting you know there are contradictions in it and the links you’ve posted. :-)

    My frustration is getting a code to work one time and the next it does not. This double-spacing after period problem that just appeared tonight is what finally drove me to my wit’s end.

  • *non-breaking space code  

    The code was stripped from the post above – didn’t use the backtick characters . . .

  • OH FOR PETE’S . . . it removed the code there too.

    & n b s p ;

  • Staff are tinkering with themes. I’d wait till Monday to try to control things when they’re moving the goal posts.

  • I’m not nit-picking your response, I’m just letting you know there are contradictions in it and the links you’ve posted. :-)

    Thanks for letting me know there are contradictions.

    I cannot help you so I tagged this thread for Staff assistance. Please subscribe to it so you are notified when they respond. To subscribe:
    1. Look in the sidebar of this thread and find the subscribe to topics link.
    2. Or look below the comment box for this: _ Notify me of followup posts via e-mail

  • @sundowntrail

    Tonight when I was posting a new blog, the non-breaking space codes stayed just fine, but sometimes when I previewed the post, the hard returns would disappear completely and the paragraphs would bunch up. The code displayed fine in text mode, fine in Visual mode, but would not reflect correctly when I previewed.

    Could you post a link to the post you’re referring to or let me know the title of the post?

    Also, tonight an additional problem has come up. These blogs are sent to me by email, and I copy and paste the text into the editor. The original text has two spaces before a new sentence. Of course, the browser has always removed those extra spaces with no problem. Tonight, the two spaces were not only posting on the blog, but were causing line problems by adding an extra space after a line break so the text appeared jagged on the left.

    Did you use the “Paste as Plain Text” option described here?

    Microsoft Word

  • The topic ‘How do I solve problems with spacing between lines and two spaces after a sentence’ is closed to new replies.