On 21 May 2012 18:34, Pete Muir <[email protected]> wrote:

> Hi
>
> We've encountered a few issues with asciidoc, happy to report them in an
> issue tracker if appropriate:
>
> 1) When processed to a PDF, single quotes in a sql statement are altered
> to back ticks
>
> [source,sql]
>
> ---------------------------------------------------------------------------------------------------------
> insert into Event (id, name, description, major, picture, version) values
> (1,
> 'Shane''s Sock Puppets',
> 'This critically acclaimed masterpiece...',
> true,
> 'http://dl.dropbox.com/u/65660684/640px-Carnival_Puppets.jpg',
> 1);
>
> ---------------------------------------------------------------------------------------------------------
>
> gives
>
>
Your image shows single quotes ' not backtick ` ?  The particular font has
given them a bit of a forward lean though.


>
> The HTML output is fine though (single quotes rendered).
>

Different font.


>
> Obviously now no longer valid SQL!
>
> 2) If a duplicate id is used (e.g. for an image), a2x doesn't report the
> output from xmllint very well. Also occurs if you have an invalid character
> in your source, e.g. a CTRL-Z. It gives
>
> a2x: ERROR: xmllint --nonet --noout --valid
> /Users/burr/code/burrsutter/ticket-monster-tutorial/target/guides/pdf/Introduction.xml
> returned non-zero exit status 1
>
> When if I run xmllint manually, I get a nice error telling me the exact
> problem. Not ideal for less technical users!
>

a2x -v prints the xmllint error novel (well some of the messages are the
size of war and peace, thats why they are not printed by default)


>
> HTML generation succeeds in this case as well.
>

HTML is generally less picky than docbook so thats not a surprise.

Cheers
Lex


>
>  --
> 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