Re:Space Invaders: Why you should never, ever use two spaces...
by markkanof on Friday January 14, 2011 @03:39AM
(#2102964)
It's probably standard HTML rendering that is collapsing the spaces. That will happen unless you put an explicit space using .
Re:Space Invaders: Why you should never, ever use two spaces...
by SimonPStevens on Friday January 14, 2011 @03:42AM
(#2102974)
Yes, HTML collapses whitespace. It's to allow you to format and structure your source html with linebreaks and indentation without it effecting the output.
If you don't want it to collapse you would use a "Non-breaking space"
See: http://en.wikipedia.org/wiki/Non-breaking_space#Use_as_non-c...
Re:Space Invaders: Why you should never, ever use two spaces...
by kellishaver on Friday January 14, 2011 @03:40AM
(#2102968)
It is, yes.
HTML ignores whitespace, unless it's inside a <pre> tag, or when IE randomly decides not to for in-line elements when rendering some CSS rules. ;)
Edit: Indeed, HN won’t allow for two spaces.
Second edit: The two spaces are in the source text. Is this a HTML thing?
Third edit: Yes, this is a HTML thing. I somehow must have forgotten how HTML treats whitespace.