On 1 June 2011 08:59, Stargazer <[email protected]> wrote:
> Hi,
>
> Given this input (no spaces):
>
> 6. this\`abc`
> 7. this\+abc+
>
> Is this the correct output:
>
> 6.  this\<tt>abc</tt>
> 7.  this+abc+
>
> I expected the backtick and plus to produce the same output, given
> there is no whitespace and this is just plain text. It is like the
> backtick treated the backslash as common punctuation, but the plus did
> not.  For another test, I changed the backslash to a comma, and the
> output was the same for both (like #6).  I read the FAQ and Chapter
> 7.
> Is the above working as designed? Why the difference?

Hi,

I'd say its a bug.  What is happening is this:

Asciidoc processes quotes in order and happens to process the ` ' pair
before the ` ` pair.  It removes the \ when looking for ` ' thus
exposing the ` ` pair.  The + is only ever part of one quotes pair so
it doesn't have the problem.

One solution is to leave the \es until all quotes are processed, then
substitute them.  This particular problem can occur when the user
defines custom quotes as well so it can't just be special cased.  Any
better ideas Stuart?

Cheers
Lex

>
> Thank you.
> Peg Russell
>
> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/asciidoc?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to