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

Re: [PATCH] Fix indentation problem in git-ls-files(1)

From
Mark Lodato <lodatom@gmail.com>
Date
Mar 7, 2010, 17:27 UTC
Message-ID
<ca433831003070927h4c3e24e1m75c7be88355f9663@mail.gmail.com>
In-Reply-To
<m3r5nzw05p.fsf@hase.home>
On Fri, Mar 5, 2010 at 5:08 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 8 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Both [horizontal] and three colons are something we never have used in the
>> existing documentation set.  How confident are you that various versions
>> of deployed AsciiDoc people would use all support this?
>
> I'm sorry, but I have no idea.  I just looked at the user guide on the
> asciidoc home page, which contais no version information.

Yes, the documentation is lacking here. I believe we official support AsciiDoc 8.2.7 - this is what the builds on kernel.org use. Here's a cheatsheet for that version:

	http://powerman.name/doc/asciidoc-827
Hopefully the following will clarify things for the future:

Use ';;' instead of ':::' for a nested list. The former was added in AsciiDoc 5.0.9; the latter in 8.3.5.

For horizontal lists, put the term and definition on the same line *and* prefix it with [horizontal]. Before 8.3.0, horizontal lists were specified by placing the definition on the same line as the term (which mimics the output). After 8.3.0, this formatting does not matter, and the choice of vertical vs horizontal is determined by the presence of [horizontal]. If you do both, I think it looks fine on both.

Here's an example showing a normal, vertical list, with a nested, horizontal list in the second item.

---- 8< ----
a::
	The first letter.
b::
	The second letter.
+
[horizontal]
	B;; The capital letter.
	beta;; The greek equivalent.
c::
	The third letter.
---- >8 ----

Perhaps it would be a good idea to add an Asciidoc section to Documentation/CodingGuidelines? This could clear up these sorts of questions, and also cover conventions used in the manual: what name to give metavariables, when to use backticks, when to use single quotes, etc.

Previous: Andreas SchwabNext: Junio C Hamano
Message 4 of 12 in “Fix indentation problem in git-ls-files(1)”
  1. Fix indentation problem in git-ls-files(1)Andreas Schwab, Mar 4, 2010
  2. Junio C HamanoMar 4, 2010
  3. Andreas SchwabMar 5, 2010
  4. Mark LodatoMar 7, 2010
  5. Junio C HamanoMar 7, 2010
  6. Andreas SchwabMar 15, 2010
  7. Junio C HamanoMar 15, 2010
  8. Johannes SixtMar 16, 2010
  9. Andreas SchwabMar 16, 2010
  10. Johannes SixtMar 17, 2010
  11. Andreas SchwabMar 19, 2010
  12. Junio C HamanoMar 20, 2010

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.