I've noticed recently that CD seems to insert non-breaking spaces arbitrarily in text.
When in doubt CD inserts a non-breaking space – just to be on the safe side. Or if you have put in two or more spaces and afterwards deletes all but one, CD will keep the non-breaking one. I think this is OK. Only if your are very concerned over line breaks you should open the file in html and replace the with ordinary spaces. If this is a bug, it's a very small one – you have to be fair to Mr Spolsky some times
Thanks, Jorgen. No intent to bust Joel's chops on this.
There's another post somewhere in the past where Joel gives the reasoning behind the current behavior.
It's because if you type space space, we insert one regular space and one to preserve your intention to have two spaces. Then if you happen to delete the regular space, you're left with a . It all seems like correct behavior when you think about it although it does sometimes make word wrapping weird.
This non-breaking-space issue is the main reason I stopped editing my articles in "Normal" view. Seriously, it messes-up the layout a lot, when you have non-breaking spaces everywhere. I'm a little surprised that this was intentional.
I second the request to be able to turn off the use of non-breaking spaces in CD. The odd wrapping behavior they create causes a problem for me in each new article that I create.
I just know that any time I hit space space one of them must be an so I just delete the whole space and add it in again any time I go to edit something with multiple spaces. It's perfectly logical if you know HTML... somewhat less so if you don't.
In many cases it makes perfect sense to have CD add non breaking spaces. I like it as it is. If you could turn it on and of, it would be better though.
What would hitting space multiple times do? And how would you add multiple spaces if you wanted them?
Fog Creek Home