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
MÅMartin Ågren <martin.agren@gmail.com>
Date
Nov 28, 2018, 20:37 UTC
Message-ID
<CAN0heSob+Ac4BvM-vuKvPZKxrTW53-d91a55NX5kC7ZyNXntWQ@mail.gmail.com>
In-Reply-To
<877egxyojp.fsf@evledraar.gmail.com>
On Wed, 28 Nov 2018 at 20:45, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 11 quoted lines
> On Wed, Nov 28 2018, Martin Ågren wrote:
>
> > Asciidoctor removes the indentation of each line in these tables, so the
> > last lines of each table have a completely broken alignment.
>
> 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?
Interesting idea. I just tried a gross hack:
 * Use `make --always-make ... install-man` in doc-diff.
 * ./doc-diff -f HEAD HEAD # note -f
 * Add empty commit and tweak config.mak
 * ./doc-diff HEAD^ HEAD # note no -f

There are lots of irrelevant differences in the headers and footers, which is a bit unfortunate.

Also, lots of annoying differences originating in Asciidoctor's inclination to render a space after linkgit:foo . There are those differences themselves, obviously, but also follow-on differences such as entire paragraphs that wrap differently.

I could spot a few things that should be fixable on our side, but on a quick skimming, I didn't spot too many "huge" differences, which feels good. The one which this patch fixes, obviously, and there's some work to do in git-status.txt and git-column.txt (at least).

Tacking on `--stat` to the call to `git diff --no-index` singles out git-config.txt, but it seems like lots of small or maybe even irrelevant differences, plus lots of spaces around linkgit: , as already mentioned.

Martin
Previous: Ævar Arnfjörð BjarmasonNext: Martin Ågren
Message 6 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.