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

Re: Back quote typo in error messages (?)

From
Jeff King <peff@peff.net>
Date
Feb 16, 2017, 19:02 UTC
Message-ID
<20170216190200.h362e52uxqlkduar@sigill.intra.peff.net>
In-Reply-To
<CAOxYW4x93cjMJoXYzSXCwqYVEstSLLcxzad_BPdvxfasrkxapw@mail.gmail.com>
On Thu, Feb 16, 2017 at 06:41:26PM +0000, Fabrizio Cucci wrote:
Show 21 quoted lines
> On 15 February 2017 at 21:56, Jeff King <peff@peff.net> wrote:
> > Grep for "``" in Git's documentation directory, and you will see many
> > examples (asciidoc only accepts the double-quote form, not singles).
> >
> > You can also try:
> >
> >   echo "this is \`\`quoted'' text" >foo.txt
> >   asciidoc foo.txt
> >
> > and then open "foo.html" in your browser.
> 
> We are probably going a bit OT here :) but AFAIK there is no such
> thing as non-symmetric start/end quotes in AsciiDoc.
> 
> Even enclosing something in curved quotes is done as follows:
> 
> '`single curved quotes`'
> 
> "`double curved quotes`"
> 
> (http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/)
Try the "Quoted Text" section of the original asciidoc user manual:
  http://www.methods.co.nz/asciidoc/userguide.html#X51

Asciidoctor has introduced some new syntax (almost certainly because the original asymmetric formulations have a bunch of ambiguous corner cases). By default, it disables the asymmetric versions, but they work in "compat" mode (and the newer ones do not).

Git's documentation is all written for the original asciidoc. If you build it with asciidoctor, it must be done in compat mode. This is the default when asciidoctor sees a two-line (i.e., underlined) section title, which all of our manpages have.

More details at:
  http://asciidoctor.org/docs/migration/#migration-cheatsheet

Yes, we are off-topic,. but I think it is worth clarifying Git's asciidoc compatibility expectations. :)

-Peff
Previous: Fabrizio CucciNext: Fabrizio Cucci
Message 7 of 8 in “Back quote typo in error messages (?)”
  1. Fabrizio CucciFeb 15, 2017
  2. Jeff KingFeb 15, 2017
  3. Junio C HamanoFeb 15, 2017
  4. Fabrizio CucciFeb 15, 2017
  5. Jeff KingFeb 15, 2017
  6. Fabrizio CucciFeb 16, 2017
  7. Jeff KingFeb 16, 2017
  8. Fabrizio CucciFeb 16, 2017

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.