• Resolved Jewels

    (@jewels)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • em dash = &#8212 ;
    en dash = &#8211 ;

    both without the space before the ;

    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 #

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hyphens and Dashes’ is closed to new replies.