2

While explaining the difference between ' '.join(x.split()) and ' '.join(x.split(None, 1)) in Python, I tried to use an example like foo__bar (with two spaces between foo and bar). However, with backtick-enclosed inline code, it looks wrong: foo bar (two spaces) looks identical to foo bar (one space). It works fine in block-code context:

foo  bar
foo bar

Is this a bug?

1

It looks like it's possible to work around this in both inline code and comments by using a non-breaking space (which, handily, can be typed with ⇧⌥Space on a Mac keyboard): this  is   a  test. Still, it's a bug that would be nice to fix...

  • comment test: this  is  a  test – nneonneo Oct 21 '12 at 19:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .