I wrote a solution to a code golf challenge that included the string ".... ...."
. This exact number of dots and spaces was necessary for the solution to work.
Two users commented (here, here) on ways to golf it down. I tested their suggestions and found that they didn't work. Initially I thought the users were confused; Then I tried to write a comment:
@User That doesn't work; Did you mean for the string to be
".... ...."
?
And it rendered as:
@User That doesn't work; Did you mean for the string to be
".... ...."
?
Is this intentional? If so, why? It has surely caused problems like this before. However, it looks like a bug to me. In posts, multiple spaces in backtick code blocks render as expected.
Does that work in code blocks?
\$\endgroup\$
, you just have to copy-paste a raw non-breaking space from somewhere. I primarily use Windows, so I copy it from the Character Map program (it's the character after~
). Example:non-breaking spaces
\$\endgroup\$.... ....
alternating space and NBSP \$\endgroup\$status completed
now \$\endgroup\$