WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Hyphens and Dashes

[Resolved] Hyphens and Dashes

  • 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 ‘[Resolved] Hyphens and Dashes’ is closed to new replies.
Skip to toolbar