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

Re: RFD: tables in documentation

From
Jeff King <peff@peff.net>
Date
May 2, 2010, 05:06 UTC
Message-ID
<20100502050622.GF14776@coredump.intra.peff.net>
In-Reply-To
<4BDC74F3.2020206@drmicha.warpmail.net>
On Sat, May 01, 2010 at 08:37:39PM +0200, Michael J Gruber wrote:
Show 7 quoted lines
> Currently, all tables are formatted using indentation by spaces. This
> breaks whenever AsciiDoc's parsing changes.
> 
> Instead, I suggest to use AsciiDoc's table syntax which also produces
> proper tables in the HTML and man output. I formatted the first part of
> the first table in git-read-tree(1) like that so that you can compare
> easily.

Conceptually I am in favor of semantic markup where possible. I find the resulting manpage a little harder to read, though. Is it possible for us to style it a bit more (e.g., such a simple table looks better, IMHO, without ascii-art borders).

Show 5 quoted lines
> I put it up at http://repo.or.cz/w/git/mjg.git/commit/table-example for
> your viewing pleasure. I'd say it looks great even in links (but not in
> lynx). It also shows a problem of xmlto with multiple rowspans (the xml
> is correct, .1 apparently not), which could be circumvented easily by
> repeating those cells.

Did you put the source up anywhere? I didn't see it, but it would be interesting to see how painful it is to write.

-Peff
Previous: Michael J GruberNext: Michael J Gruber
Message 2 of 11 in “RFD: tables in documentation”
  1. Michael J GruberMay 1, 2010
  2. Jeff KingMay 2, 2010
  3. Michael J GruberMay 2, 2010
  4. Will PalmerMay 2, 2010
  5. Will PalmerMay 2, 2010
  6. Michael J GruberMay 2, 2010
  7. Michael J GruberMay 2, 2010
  8. Jonathan NiederMay 2, 2010
  9. Michael J GruberMay 2, 2010
  10. Jeff KingMay 25, 2010
  11. Michael J GruberMay 25, 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.