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

Re: [PATCH 0/6] AsciiDoc vs Asciidoctor, once again

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
May 14, 2021, 15:28 UTC
Message-ID
<CAN0heSp7JFS3j+DypQm=P-rPzyScvs+Yed75AXYBsQpbJtVytA@mail.gmail.com>
In-Reply-To
<609e6be4bc14d_4312720861@natae.notmuch>

On Fri, 14 May 2021 at 14:24, Felipe Contreras <felipe.contreras@gmail.com> wrote:

Show 15 quoted lines
>
> Martin Ågren wrote:
> > On Fri, 14 May 2021 at 03:40, Felipe Contreras
> > <felipe.contreras@gmail.com> wrote:
> >
> > > We should be submitting bug reports to the asciidoctor project as well,
> > > so in the future it's less likely we find ourselves in the same
> > > scenario.
> > >
> > > Preferably the bug report should be in the commit message.
> >
> > I don't have an account with the website they use for their issue
> > tracking.
>
> GitHub? It probably takes a couple of minutes to set up an account.

Yes, it's GitHub. I'm not interested in having an account there. There's some trade-off there with me not being able to report bugs, but that cuts both ways, so I don't feel bad about it.

> > If you want to submit a bug report and post the link here,
> > that's fine by me and I'll include it in the reroll.
>
> If you would rather have me act as a proxy, that's fine by me.
Thanks. If you have better things to do, no worry.
> Just give me a simple example that produces the issue.

Here are three variants where AsciiDoc 8.6.10 renders the same, with emphasis:

  single quotes that will not render literally: 'git cat-file'.
  single quotes that won't render literally: 'git cat-file'.
  single quotes that\'ll render literally: 'git cat-file'.
With Asciidoctor (2.0.15),
  asciidoctor -b docbook5 -d manpage -o test.xml test.txt
the XML contains

<simpara>single quotes that will not render literally: <emphasis>git cat-file</emphasis>.</simpara> <simpara>single quotes that won&#8217;t render literally: <emphasis>git cat-file</emphasis>.</simpara> <simpara>single quotes that&#8217;ll render literally: 'git cat-file'.</simpara>

That last paragraph is not as expected. I expect <emphasis>.

I realize that a good answer here is "don't do that then". But the background is that there's some other stuff going on that means AsciiDoc needs that backspaced apostrophe. So this is a minimal reproduction for Asciidoctor where we've lost some of the AsciiDoc-specific background.

A fix that works with both tools is an attribute:
  :apos: '
  single quotes that won{apos}t render literally: 'git cat-file'.
Martin
Previous: Felipe ContrerasNext: Felipe Contreras
Message 21 of 22 in “AsciiDoc vs Asciidoctor, once again”
  1. 0/6 AsciiDoc vs Asciidoctor, once againMartin Ågren, May 13, 2021
  2. 1/6 git-http-push.txt,git-send-pack.txt: avoid single quoteMartin Ågren, May 13, 2021
  3. 2/6 git-range-diff.txt: avoid single quotesMartin Ågren, May 13, 2021
  4. 3/6 git-check-ref-format.txt: avoid single quoteMartin Ågren, May 13, 2021
  5. Eric SunshineMay 13, 2021
  6. Martin ÅgrenMay 13, 2021
  7. Junio C HamanoMay 13, 2021
  8. Martin ÅgrenMay 14, 2021
  9. Felipe ContrerasMay 14, 2021
  10. Jeff KingMay 14, 2021
  11. Martin ÅgrenMay 14, 2021
  12. 4/6 diff-options.txt: move monospace markup out of attributeMartin Ågren, May 13, 2021
  13. 5/6 git-svn.txt: change verse to listing blockMartin Ågren, May 13, 2021
  14. 6/6 Doc: use two backticks for monospace, not backtick+apostropheMartin Ågren, May 13, 2021
  15. Junio C HamanoMay 13, 2021
  16. Martin ÅgrenMay 14, 2021
  17. Felipe ContrerasMay 14, 2021
  18. Felipe ContrerasMay 14, 2021
  19. Martin ÅgrenMay 14, 2021
  20. Felipe ContrerasMay 14, 2021
  21. Martin ÅgrenMay 14, 2021
  22. Felipe ContrerasMay 14, 2021

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.