git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4 4/4] gitfaq: fetching and pulling a repository

From
Junio C Hamano <gitster@pobox.com>
Date
May 3, 2020, 01:03 UTC
Message-ID
<xmqqftchkext.fsf@gitster.c.googlers.com>
In-Reply-To
<CABPp-BGrsw1V3gUWN40DTRCPBD5ZD5kvoqdjMuEJtJKCni09_w@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
Show 9 quoted lines
>> Also, a nit but, we are supposed to use 1 SP or 2 SP after a full
>> stop(.)? In India we use 1 SP, is it different in other countries?
>
> Ah, the never ending spacing debate...
>
> There may be variation country-to-country, but I doubt it's country
> specific.  It's more a raging debate based on the fact that "official"
> rules have changed multiple times, old habits die hard, different
> contexts exist for different audiences, and various other wrinkles.
https://www.theverge.com/2020/4/24/21234170 ;-)

Since very old days of print media until now and well into the future, readers want to see longer whitespace after the end of each sentence than whitespace between words. Behaviour of programs that that take your "text file" as its input and produces rendered output differ. Some ignore the number of spaces after the full-stop and "do the right thing" its output (that's the norm for typesetting systems), and others want to see only one space there, and leaves more swhitespace than optimal if you put two or more (which is often how WYSIWYG word processors work).

The ideal would be to keep both the source text file and rendered output pleasant to the eyes, and that means we type two spaces after the end of a sentence in the source (which is meant to be read in monospace text) and we avoid formatting programs that break (i.e. produce more spaces than desirable) when fed more than one space after each sentence (otherwise, we would be forced to use only one space and hurt our eyes).

I think our arrangement to go from source text through AsciiDoc or Asciidoctor to manpage or XHTML produces the right output with two spaces, so we are good.

Previous: Elijah NewrenNext: Elijah Newren
Message 18 of 21 in “gitfaq: files in .gitignore are tracked”
  1. 1/4 gitfaq: files in .gitignore are trackedShourya Shukla, Apr 29, 2020
  2. 2/4 gitfaq: changing the remote of a repositoryShourya Shukla, Apr 29, 2020
  3. Elijah NewrenApr 29, 2020
  4. Junio C HamanoApr 29, 2020
  5. 3/4 gitfaq: shallow cloning a repositoryShourya Shukla, Apr 29, 2020
  6. Elijah NewrenApr 29, 2020
  7. Shourya ShuklaMay 2, 2020
  8. Junio C HamanoApr 29, 2020
  9. Shourya ShuklaMay 2, 2020
  10. Junio C HamanoMay 4, 2020
  11. Derrick StoleeMay 5, 2020
  12. dyrone tengMay 6, 2021
  13. 4/4 gitfaq: fetching and pulling a repositoryShourya Shukla, Apr 29, 2020
  14. Elijah NewrenApr 29, 2020
  15. Junio C HamanoApr 29, 2020
  16. Shourya ShuklaMay 2, 2020
  17. Elijah NewrenMay 2, 2020
  18. Junio C HamanoMay 3, 2020
  19. Elijah NewrenApr 29, 2020
  20. Shourya ShuklaMay 2, 2020
  21. Junio C HamanoApr 29, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.