Two dashes turn into a big one

  • Unknown's avatar

    How can I avoid wordpress from turning two dashes “-” into a big one “–” (even with tags around!)?
    I'm writing a blog about linux, and it's really annoying when I have to write command line codes, the
    tag should avoid this kind of mistakes.

  • Unknown's avatar

    woops sorry for the typo, read :

    “even with code tags around”

    and

    “the code tags should avoid this kind of mistakes”

  • Unknown's avatar

    As a (hopefully temporary) workaround, I’ve found that separating the dashes with a comment works. For example, “-<!-- Argh! WordPress is really annoying! -->-“. Also, why does WordPress convert &nbsp; to an ordinary space? If I wanted an ordinary space, wouldn’t I have just typed that instead of spending all sorts of time converting spaces to  ?

  • Are you using this method of posting source code?

    How do I post source code?

  • Unknown's avatar

    Why is this Topic have bigger text then the other topic?

  • Unknown's avatar

    thanks for all the answer,

    mrlobotomy:”If I wanted an ordinary space, wouldn’t I have just typed that instead of spending all sorts of time converting spaces to ?”
    I have the same question for code tags: why doesn’t it work properly

    matt: thanks, I’ll use this method from now on, but I think this code tag should “simply work” as a code tag…

    forum12345: I stupidly wrote < code > blabla < code > blala :)

  • The topic ‘Two dashes turn into a big one’ is closed to new replies.