WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hyphens and Dashes (4 posts)

  1. Jewels
    Member
    Posted 8 years ago #

    When writing a publishing posts, would I be correct in assuming that writing a single hypen would produce a regular a hypen, "--" would produce an en dash and "---" would produce an em dash?

  2. makemead
    Member
    Posted 8 years ago #

    em dash = &#8212 ;
    en dash = &#8211 ;

    both without the space before the ;

  3. nickobec
    Member
    Posted 8 years ago #

    Jewels
    You are correct (assuming you are running WP 1.5.2 or 2.0 and have not hacked your functions-formatting.php file)

    one - = -
    two - = —
    three - = –

    if you want to turn it off you need to comment out the following lines from functions-formatting.php
    <code>
    $curl = str_replace('--', '& #8211;', $curl);
    $curl = str_replace('---', '& #8212;', $curl);
    $curl = str_replace(' -- ', ' & #8212; ', $curl);
    </code>

    note no space between & and #

  4. makemead
    Member
    Posted 8 years ago #

    Wow, I've been putting it in the hard way all this time? LOL

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags