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

Re: [PATCH] revisions.txt: expand tabs to spaces in diagram

From
Junio C Hamano <gitster@pobox.com>
Date
May 4, 2018, 02:32 UTC
Message-ID
<xmqqmuxgtal8.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180504015202.GP13217@genre.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 17 quoted lines
> ...  We can help both AsciiDoc and Asciidoctor do the right thing
> here (and keep our 8-space tabs) by enclosing the diagram in a block
> like so:
>
> [literal]
> --
>    Args   Expanded arguments    Selected commits
>    D                            G H D
>    D F                          G H I J D F
>    ...
> 	  = B ^D ^E ^F          B
>    F^! D  = F ^I ^J D           G H D F
> --
>
> and using the tabsize=8 attribute when invoking Asciidoctor.  I can send
> a patch tomorrow which does this, which I think may be a bit nicer than
> having to give up tabs.

Yeah, trying to forbid indent-with-tab has been shown to be unworkable so even if we tried to give up tabs, it is likely we would break it by mistake. Allowing indent-with-tab and ask the tool to do the right thing is obviously the right direction.

Thanks.
Previous: brian m. carlsonNext: brian m. carlson
Message 5 of 12 in “revisions.txt: expand tabs to spaces in diagram”
  1. revisions.txt: expand tabs to spaces in diagramMartin Ågren, Apr 30, 2018
  2. Junio C HamanoMay 2, 2018
  3. Martin ÅgrenMay 2, 2018
  4. brian m. carlsonMay 4, 2018
  5. Junio C HamanoMay 4, 2018
  6. 1/2 Documentation: use 8-space tabs with Asciidoctorbrian m. carlson, May 6, 2018
  7. 2/2 Documentation: render revisions correctly under Asciidoctorbrian m. carlson, May 6, 2018
  8. Martin ÅgrenMay 7, 2018
  9. brian m. carlsonMay 8, 2018
  10. Martin ÅgrenMay 8, 2018
  11. brian m. carlsonMay 9, 2018
  12. Junio C HamanoMay 7, 2018

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.