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

Re: [PATCH] docs: stop using asciidoc no-inline-literal

From
Thomas Rast <trast@student.ethz.ch>
Date
Apr 26, 2012, 09:50 UTC
Message-ID
<87sjfqn7og.fsf@thomas.inf.ethz.ch>
In-Reply-To
<87d36uomlq.fsf@thomas.inf.ethz.ch>
Thomas Rast <trast@inf.ethz.ch> writes:
Show 6 quoted lines
> -``Com M Itter'') and `<email>` is the person's email address
> -(``cm@example.com'').  `LT` and `GT` are the literal less-than (\x3c)
> -and greater-than (\x3e) symbols.  These are required to delimit
> +`Com M Itter`) and `<email>` is the person's email address
> +(`cm@example.com`).  `LT` and `GT` are the literal less-than (`\x3c`)
> +and greater-than (`\x3e`) symbols.  These are required to delimit
[...]
Show 6 quoted lines
>
> On my box (asciidoc 8.4.5) the preimage renders as
>
>   `Com M Itter''
>
> in fixed-width font.

Note that ``foo'' is the correct way to have it render “foo” (with the smart quotes). So it's not even a formatting error on our end, just massive quoting rules brain damage that ruins the use of quotes here.

(I had this in the original email, but then edited it out. Sorry for any undue confusion caused.)

Show 14 quoted lines
> In the process of debugging this, I noticed that
> the quoting rules are hilariously screwy.  It seems that within a
> paragraph, saying
>
>   ``foo'' means `bar`
>    ^^^^^^^^^^^^^
>
> treats the underlined part as a `-quoted chunk of text, and renders it
> appropriately using a fixed-width font.  The trailing ` has no effect
> unless it is followed by another ` within the same paragraph.  But the `
> right at the start of the "quoted" text has no effect either!  Moreover,
> this behaviour is the same regardless of the 'asciidoc7compatible'
> setting.  I wonder if it has since been fixed, but the above might be a
> good idea anyway.  (The quoting around \xAB is just for good measure.)
-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Thomas RastNext: Jeff King
Message 6 of 8 in “docs: stop using asciidoc no-inline-literal”
  1. docs: stop using asciidoc no-inline-literalJeff King, Apr 26, 2012
  2. Jeff KingApr 26, 2012
  3. Matthieu MoyApr 26, 2012
  4. Jeff KingApr 26, 2012
  5. Thomas RastApr 26, 2012
  6. Thomas RastApr 26, 2012
  7. Jeff KingApr 26, 2012
  8. Thomas RastApr 26, 2012

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.