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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 14 May 2021 at 14:24, Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
>
> Martin Ågren wrote:
> > On Fri, 14 May 2021 at 03:40, Felipe Contreras
> > <felipe.contreras@xxxxxxxxx> 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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux