3 ms·
I think HN collapses two spaces. Let me just test that. Edit: Indeed, HN won’t allow for two spaces. Second edit: The two spaces are in the source text. Is t
by ugh 16y ago
I think HN collapses two spaces. Let me just test that.
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.
- markkanof 16y agoIt's probably standard HTML rendering that is collapsing the spaces. That will happen unless you put an explicit space using .
- kellishaver 16y agoIt 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. ;)
- deleted 16y ago[deleted]
- SimonPStevens 16y agoYes, 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-collapsing_white-space http://en.wikipedia.org/wiki/Non-breaking_space#Use_as_non-c...