3 ms·
Double spacing helps to set sentences off from each other visually. I prefer reading material that's double-spaced, so that's the way I prefer to write. It's
by haploid 16y ago
Double spacing helps to set sentences off from each other visually. I prefer reading material that's double-spaced, so that's the way I prefer to write.
It's also to some extent simply out of habit. But even if my only reason was because Miss Millie in the 3rd grade told me to( another appeal to authority ), I'm not writing desperate screeds admonishing everyone about being bad people because they aren't listening to Miss Millie.
- 3pt14159 16y agoDoes HN truncate double spaces? Testing this now. Otherwise I'm only picking up one space after your sentences. Edit: Looks like it does. Yay PG! Edit2: Looks like I forgot some basics of HTML. My 14 year old self would be very disappointed.
- Corrado 16y agoActually, its your browser that renders multiple spaces as a single space. If you want multiple spaces in your HTML you have to use the non-breakable space tag " ".
- xentronium 16y agoI believe there is unbreakable space character you could use for that purpose.
- flatline 16y agoThe HTML rendering engine in your browser actually consolidates each block of white space into a single visible space character. If you view source, there are two spaces there. So, there's a good reason not to use two spaces, as the web will only show the one.
- JoeAltmaier 16y agoThat's actually an argument for why it doesn't matter, so we can all continue to do as we please. Is there a good reason the browser messes up my spacing? Certainly not for readability!
- sciolistse 16y agoIt's because spacing is used for both structure and presentation in HTML, so something like: <span>This is some text</span> <span>while this is some more text.</span> shouldn't render the 4 indentation spaces that I used.. If it did we'd have to pack it all into one line. Can be adjusted appropriately with CSS though, if people here were obsessive about the presentation of their spacing.
- haberman 16y ago> The HTML rendering engine in your browser actually consolidates each block of white space into a single visible space character. I don't believe that's true when the browser decides to break the line between the two spaces -- see: http://i.imgur.com/MksV7.png http://i.imgur.com/MksV7.png (which I took from http://www.jeanhsu.com/?p=229 http://www.jeanhsu.com/?p=229) So I guess you could argue that putting two spaces in HTML is strictly a negative: it does nothing, except when it makes things look worse. Even that being as it is, I'll never stop putting two spaces between sentences.
- apotheon 16y agoThere's something kooky going on with that page. I think the CMS used for that site must be substituting one type of space character with another in Unicode, or something like that, so that the browser does not "know" how to collapse the two whitespace characters into a single whitespace character. When I copy the two whitespace characters between sentences there into separate text files that contain nothing but those whitespace characters, then `diff a.txt b.txt`, the result is that they differ, so there is definitely some difference between the two types of whitespace characters used between sentences. I've written a text formatting tool designed to preserve multiple whitespace instances on the Web. It used ` ` for the first of every pair of standard single space characters. Apparently, this CMS is doing something similar, but even tricker because it doesn't show up in the source as an HTML entity, and perhaps less well thought-out because for some reason the nonbreaking version space character used is the second of the two (which results in weird ghost-spaces at the beginnings of lines sometimes, as you discovered).
- apotheon 16y agoThat's not a good reason to use two spaces -- that's a good reason for people who think one space is "the standard" to stop haranguing people who use more than one character width to separate sentences when typing.