What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

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?

share|improve this question
Yeah, this is just your browser handling spaces in the <pre> tag differently than the <code> element. (Could be changed by applying whitespace: pre in CSS.) – Paŭlo Ebermann Oct 21 '12 at 21:04

1 Answer 1

up vote 2 down vote accepted

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...

share|improve this answer
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 .