WordPress.org

Ready to get started?Download WordPress

Forums

Sentence spacing. (8 posts)

  1. shiznaught
    Member
    Posted 7 years ago #

    Ever since I learned this in high school, I've been using two spaces after a period. I've noticed recently, however, that a lot of blogs and news sources use a single space to separate each sentences, and I'm wondering if I should be doing the same. My hunch is that this is a journalistic convention, presumbly for newspaper formatting purposes. Does anyone know the answer?

  2. rossz
    Member
    Posted 7 years ago #

    The problem is browsers compress whitespace, so even though you put the proper two spaces in after a period, it is not displayed properly. I supposed someone could whip up a plugin that replaces a period-space-space with period-mspace or period-nbsp-space.

  3. whooami
    Member
    Posted 7 years ago #

    thats already been done, though i have no clue where the plugin lives -- I just know its been done :)

  4. rossz
    Member
    Posted 7 years ago #

    I just wrote a quick plugin to do this, unfortunately, the rich editor removes duplicate whitespace so the plugin doesn't work looking for ". ". However, if you don't use the rich editor, you can grab the very simple but experimental plugin at http://vamos-wentworth.org/downloads/fullstop.zip

  5. whooami
    Member
    Posted 7 years ago #

  6. shiznaught
    Member
    Posted 7 years ago #

    Thanks for the input. So are you saying that that the single space is a browser idiosyncracy? Maybe this is a browser discrepancy with Explorer and Firefox.

  7. Kafkaesqui

    Posted 7 years ago #

    "So are you saying that that the single space is a browser idiosyncracy?"

    No. It's basic to HTML, which generally ignores multiple 'white' space characters. So whether one space or one hundred, the browser translates it into a single space, based strictly on the HTML specification.

    Ways around this are to place text in a <pre> element, or make use one of a number of HTML character entities (such as &nbsp;).

  8. rossz
    Member
    Posted 7 years ago #

    The plugin suggested by whoami is almost identical to the second revision of my plugin. Yesterday I had discovered that IE didn't play well with the emspace, so I had switched to nbsp+space combination.

Topic Closed

This topic has been closed to new replies.

About this Topic