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

Re: [PATCH 1/2] git-reset.txt: render tables correctly under Asciidoctor

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 28, 2018, 19:44 UTC
Message-ID
<877egxyojp.fsf@evledraar.gmail.com>
In-Reply-To
<1596a9ff9fa6849f53590de1b15eb18ee6b41e4d.1543429054.git.martin.agren@gmail.com>
On Wed, Nov 28 2018, Martin Ågren wrote:
Show 15 quoted lines
> Asciidoctor removes the indentation of each line in these tables, so the
> last lines of each table have a completely broken alignment.
>
> Similar to 379805051d ("Documentation: render revisions correctly under
> Asciidoctor", 2018-05-06), use an explicit literal block to indicate
> that we want to keep the leading whitespace in the tables.
>
> Because this gives us some extra indentation, we can remove the one that
> we have been carrying explicitly. That is, drop the first six spaces of
> indentation on each line. With Asciidoc (8.6.10), this results in
> identical rendering before and after this commit, both for git-reset.1
> and git-reset.html.
>
> Reported-by: Paweł Samoraj <samoraj.pawel@gmail.com>
> Signed-off-by: Martin Ågren <martin.agren@gmail.com>

Earlier I was trying to get the Documentation/doc-diff script to diff the asciidoc and asciidoctor docs without much success (hadn't used it before, just hacking the Makefile to turn on asciidoctor yielded syntax errors or something).

Is something like that a thing we could make into a regression test?
Previous: Martin ÅgrenNext: Martin Ågren
Message 5 of 7 in “Broken alignment in git-reset docs”
  1. Paweł SamorajNov 28, 2018
  2. Martin ÅgrenNov 28, 2018
  3. 0/2 Re: Broken alignment in git-reset docsMartin Ågren, Nov 28, 2018
  4. 1/2 git-reset.txt: render tables correctly under AsciidoctorMartin Ågren, Nov 28, 2018
  5. Ævar Arnfjörð BjarmasonNov 28, 2018
  6. Martin ÅgrenNov 28, 2018
  7. 2/2 git-reset.txt: render literal examples as monospaceMartin Ågren, Nov 28, 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.