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

asciidoc 7--8 compatibility (was Re: pull-fetch-param.txt)

From
SRStefan Richter <stefanr@s5r6.in-berlin.de>
Date
Oct 4, 2006, 16:40 UTC
Message-ID
<4523E401.5080709@s5r6.in-berlin.de>
In-Reply-To
<4522E66B.4080103@methods.co.nz>
Stuart Rackham wrote:
Show 7 quoted lines
> From the AsciiDoc User Guide
> (http://www.methods.co.nz/asciidoc/userguide.html#X53):
> 
> If you want to disable unconstrained quotes, the new alternative
> constrained quotes syntax and the new index entry syntax then you can
> define the attribute asciidoc7compatible (for example by using the -a
> asciidoc7compatible command-line option).
Stuart,
the actual issues were:

1.) Input which works with asciidoc 7 fails to build with asciidoc 8 (after the intermediary XML step). This pair of tildes broke (but other occurences of tilde did not):

| * A suffix '~<n>' to a revision parameter means the commit
|   object that is the <n>th generation grand-parent of the named
|   commit object, following only the first parent.  I.e. rev~3 is

2.) Asciidoc 8 silently swallows characters from input which works with asciidoc 7. The two pluses in the following line vanished (but instances of single pluses per input line did not vanish):

| 	`+?<src>:<dst>`; that is, an optional plus `+`, followed
I wonder:
 - Are tilde and plus new special characters in asciidoc 8, or were they
already special characters in asciidoc 7?
       [ A pair of single pluses encloses monospaced text in asciidoc 8.
         A pair of single tildes encloses subscripts. ]
 - If they were already special characters in asciidoc 7, what is the
canonical way to escape them in asciidoc 7, 8, and hopefully 9?
       [ If they weren't special characters in asciidoc 7, then we need
         to use the asciidoc7compatible attribute. ]
 - Does asciidoc 7 accept the asciidoc7compatible attribute?
Thanks.
PS:
Junio, Stuart, here is another inconsistency between asciidoc 7 and 8.
Please have a look at
http://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html .
See the ASCII art above "SPECIFYING RANGES". The input
       \  |  / \
        \ | /   |
produced
   \  |  /         \ | /   |
I.e. backslash-newline was interpreted by asciidoc 7 (or whatever you
use to generate what is put online) as an escaped thus swallowed
newline. But the output that I got here from asciidoc 8 (manpage as well
as the html file) still has backslash and newline printed out.
-- 
Stefan Richter
-=====-=-==- =-=- --=--
http://arcgraph.de/sr/
Previous: Junio C HamanoNext: Stuart Rackham
Message 9 of 23 in “escape tilde in Documentation/git-rev-parse.txt”
  1. escape tilde in Documentation/git-rev-parse.txtStefan Richter, Oct 2, 2006
  2. Junio C HamanoOct 3, 2006
  3. Stefan RichterOct 3, 2006
  4. Junio C HamanoOct 3, 2006
  5. pull-fetch-param.txt (was Re: [PATCH] escape tilde in Documentation/git-rev-parse.txt)Stefan Richter, Oct 3, 2006
  6. Junio C HamanoOct 3, 2006
  7. Stuart RackhamOct 3, 2006
  8. Junio C HamanoOct 4, 2006
  9. asciidoc 7--8 compatibility (was Re: pull-fetch-param.txt)Stefan Richter, Oct 4, 2006
  10. Stuart RackhamOct 4, 2006
  11. Stefan RichterOct 4, 2006
  12. Stuart RackhamOct 4, 2006
  13. Stefan RichterOct 4, 2006
  14. Stefan RichterOct 4, 2006
  15. Gerrit PapeJul 12, 2007
  16. Junio C HamanoJul 12, 2007
  17. Gerrit PapeJul 13, 2007
  18. Junio C HamanoJul 13, 2007
  19. Gerrit PapeJul 13, 2007
  20. Gerrit PapeJul 20, 2007
  21. Junio C HamanoJul 20, 2007
  22. Julian PhillipsJul 20, 2007
  23. Junio C HamanoJul 20, 2007

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.