Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A byte here, a byte there

A byte here, a byte there

Scheduled Pinned Locked Moved The Lounge
comtestingbeta-testingquestion
16 Posts 15 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #1

    I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

    L C S V J 8 Replies Last reply
    0
    • M Marc Clifton

      I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

      L Offline
      L Offline
      Luis Alonso Ramos
      wrote on last edited by
      #2

      I always put two spaces before the "-- LuisR" when I sign a post, and they're always removed. I think it's related with the HTML rendering more than with the space saving you suggest. -- LuisR Let's try again:

      -- LuisR


      Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

      1 Reply Last reply
      0
      • M Marc Clifton

        I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

        C Offline
        C Offline
        ColinDavies
        wrote on last edited by
        #3

        I'm a two spaces after the period person also. It irks we when it doesn't render as such. Also I believe a space before a question mark is appropriate, nobody else seems to though. Regardz Colin J Davies Attention: It's finally arrived, The worlds first DSP.

        S D realJSOPR 3 Replies Last reply
        0
        • M Marc Clifton

          I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

          S Offline
          S Offline
          Steve McLenithan
          wrote on last edited by
          #4

          I thought the double space after end of sentence punctuation was a habit from typewriter days. I never double space in word. Heck it yells at you if you do so.

          This demographic will quite happily click on shiny things however:laugh:

          Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

          M 1 Reply Last reply
          0
          • S Steve McLenithan

            I thought the double space after end of sentence punctuation was a habit from typewriter days. I never double space in word. Heck it yells at you if you do so.

            This demographic will quite happily click on shiny things however:laugh:

            Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

            M Offline
            M Offline
            Marc Clifton
            wrote on last edited by
            #5

            Steve McLenithan wrote: I never double space in word. Heck it yells at you if you do so. Really?  Wierd.  It never complains to me. Marc MyXaml Advanced Unit Testing

            G D 2 Replies Last reply
            0
            • C ColinDavies

              I'm a two spaces after the period person also. It irks we when it doesn't render as such. Also I believe a space before a question mark is appropriate, nobody else seems to though. Regardz Colin J Davies Attention: It's finally arrived, The worlds first DSP.

              S Offline
              S Offline
              spsharma
              wrote on last edited by
              #6

              Even I agree on space in front of question mark.

              1 Reply Last reply
              0
              • M Marc Clifton

                I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

                V Offline
                V Offline
                V 0
                wrote on last edited by
                #7

                use   for a space. If you put two right after another you normally should get two spaces :). space            space "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

                1 Reply Last reply
                0
                • M Marc Clifton

                  I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

                  J Offline
                  J Offline
                  jan larsen
                  wrote on last edited by
                  #8

                  The browsers removes everything other than a single space when parsing, unless you specifically tells it not to: No tags: " testing" <pre> tags:

                  " testing"

                  no break spaces: "      Testing" It's actually quite convenient when you're designing the page, this makes it possible to properly format the html page, eg:

                  <td>
                  <span style="color: red;">
                  Testing
                  </span>
                  </td>

                  If the browser didn't ignore whitespaces, I would have to write it like this:

                  <td><span style="color: red;">Testing</span></td>

                  "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus

                  1 Reply Last reply
                  0
                  • C ColinDavies

                    I'm a two spaces after the period person also. It irks we when it doesn't render as such. Also I believe a space before a question mark is appropriate, nobody else seems to though. Regardz Colin J Davies Attention: It's finally arrived, The worlds first DSP.

                    D Offline
                    D Offline
                    Derek Lakin
                    wrote on last edited by
                    #9

                    ColinDavies wrote: I'm a two spaces after the period person also This is a readability thing from typewriter days. Personally, I stick with one space as I think the two spaces looks odd and it's also a heck of a lot fewer impacts on the space bar ;) ColinDavies wrote: Also I believe a space before a question mark is appropriate, nobody else seems to though That's because it's grammatically incorrect :-D. The question mark, like any other punctuation (like a full stop (period for the Americans among us), comma, exclamation mark, etc.) should immediately follow the word preceding it. Derek Lakin. Salamander Software Ltd. The Add-in Zone blog: Digital Thoughts bliki: Derek's Bliki

                    1 Reply Last reply
                    0
                    • C ColinDavies

                      I'm a two spaces after the period person also. It irks we when it doesn't render as such. Also I believe a space before a question mark is appropriate, nobody else seems to though. Regardz Colin J Davies Attention: It's finally arrived, The worlds first DSP.

                      realJSOPR Offline
                      realJSOPR Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      I'm right-handed, and when I cut meat, I use the kniwfe in my left hand. Everyone thinks it's wrong, but I think it's more efficient. ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      J 1 Reply Last reply
                      0
                      • M Marc Clifton

                        I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

                        D Offline
                        D Offline
                        David Wulff
                        wrote on last edited by
                        #11

                        Single space: I am a double space man too. The difference in readability is why I still continue to do it. Try saving a word document as HTML and then see which is easier to read. For me, the double space after a period wins every time. Double space: I am a double space man too.  The difference in readability is why I still continue to do it.  Try saving a word document as HTML and then see which is easier to read.  For me, the double space after a period wins every time.


                        David Wulff The Royal Woofle Museum

                        Everybody is entitled to my opinion

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

                          A Offline
                          A Offline
                          Andy Moore
                          wrote on last edited by
                          #12

                          I learned the habit of two spaces after a period or exclamation point in typing class way back in middle school. In the publishing industry the only allow one space since extra space leads to more printed pages and expense.

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            Steve McLenithan wrote: I never double space in word. Heck it yells at you if you do so. Really?  Wierd.  It never complains to me. Marc MyXaml Advanced Unit Testing

                            G Offline
                            G Offline
                            Gary Thom
                            wrote on last edited by
                            #13

                            It's a grammar checker thingy(tm). Gary While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.' - Dilbert

                            1 Reply Last reply
                            0
                            • M Marc Clifton

                              I notice when I post a message, the two spaces that I habitually put in between the period and the first letter that starts the next sentence are magically shrunk to a single space.  Very amusing.  I've heard it say that only a single space is appropriate for web documents. I wonder how many bytes that saves overall?  Or am I the only one that does it? ;P Marc MyXaml Advanced Unit Testing

                              R Offline
                              R Offline
                              Roger Wright
                              wrote on last edited by
                              #14

                              I do it too - an old habit beaten into me by sadistic English teachers and a mother who knows how to type properly. It's a wasted keystroke, though, as HTML rendering rules ignore all but one character of whitespace unless the $nbsp; token is deliberately inserted. "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City

                              1 Reply Last reply
                              0
                              • M Marc Clifton

                                Steve McLenithan wrote: I never double space in word. Heck it yells at you if you do so. Really?  Wierd.  It never complains to me. Marc MyXaml Advanced Unit Testing

                                D Offline
                                D Offline
                                David Crow
                                wrote on last edited by
                                #15

                                Marc Clifton wrote: It never complains to me. Same here. My biggest crime is using passive sentences.


                                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                                1 Reply Last reply
                                0
                                • realJSOPR realJSOP

                                  I'm right-handed, and when I cut meat, I use the kniwfe in my left hand. Everyone thinks it's wrong, but I think it's more efficient. ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                                  J Offline
                                  J Offline
                                  Jeff Martin
                                  wrote on last edited by
                                  #16

                                  I've never been able to master cutting left handed, so I just eat the steak with the knife. Jeff Martin My Blog

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups