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

Re: RFD: tables in documentation

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
May 2, 2010, 15:27 UTC
Message-ID
<4BDD99F3.9000305@drmicha.warpmail.net>
In-Reply-To
<4BDD956F.5070800@drmicha.warpmail.net>
Michael J Gruber venit, vidit, dixit 02.05.2010 17:08:
Show 50 quoted lines
> Will Palmer venit, vidit, dixit 02.05.2010 16:51:
>> sorry about that, apparently "shift+enter" means "send" to this thing...
>>
>> On Sun, 2010-05-02 at 15:43 +0100, Will Palmer wrote:
>>> On Sun, 2010-05-02 at 15:31 +0200, Michael J Gruber wrote:
>>>> Jeff King venit, vidit, dixit 02.05.2010 07:06:
>>>>> On Sat, May 01, 2010 at 08:37:39PM +0200, Michael J Gruber wrote:
>>>>> 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.
>>>>
>>>> http://repo.or.cz/w/git/mjg.git/shortlog/refs/heads/doc-use-tables
>>>>
>>>> Tough guess, I know ;)
>>>>
>>>> Michael
>>>
>>
>> that looks suspiciously like a format that's intended to be readable in
>> both plaintext and eventually-generated form. This is me speaking in
>> pure ignorance, but would something like (though I assume not exactly):
>>
>> [cols="1,3*5,8"]
>>    |=====================
>>    |		   |I		 |H		|M		|Result
>>    |     0	   |nothing	 |nothing	|nothing	|(does not happen)
>>    |     1	   |nothing	 |nothing	|exists		|use M
>>    |     2	   |nothing	 |exists	|nothing	|remove path from index
>> .2+|	 3	.2+|nothing   .2+|exists	|exists, H == M |use M if "initial checkout", keep index otherwise
>> 						 exists, H != M |fail
>>    |=====================
>>
>> work as intended?
>>
> 
> Uhm, how is that different from my patch (except for spaces which I
> didn't bother with for this p-o-c)? [This is AsciiDoc - you know, do
> you? ;)]
> 
> Jeff doesn't like the ascii art in the roff output (.1, as can be seen
> in the .1.txt file). It looks very "strong", just like the content.
> 
> Further experimentation (editing the xml) indicates that with my
> toolchain, I can either shut off all borders (between cells as well as
> outer) or none. Why does working with the toolchain always frustrate me?
> It's often a hindrance for improvements.
> 
> So, we could shut off all borders by adding an output dependent table
> definition in asciidoc.conf, copying current asciidoc's own and
> modifying it for docbook-man output. Is it worth it? Maybe others like
> the strong ascii borders...
For completeness, it results in this:
     I                H         M               Result
 0   nothing          nothing   nothing         (does not happen)
 1   nothing          nothing   exists          use M
 2   nothing          exists    nothing         remove path from index
 3   nothing          exists    exists, H ==M   use M if "initial
                                                checkout", keep index
     exists, H != M             fail            otherwise

[Same unealt rowspan issue, of course.] Michael

Previous: Michael J GruberNext: Jonathan Nieder
Message 7 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.