On Oct 7, 12:26 am, Stuart Rackham <[email protected]> wrote:
> Hi Svenn
>
> I've added this patch to the trunk:
> The a2x `asciidoc_opts`, `dblatex_opts`, `fop_opts` and
> `xsltproc_opts` command-line options can be specified multiple times.
> This makes embedding multiple a2x options in document headers easier
> to manage and less error 
> prone:http://code.google.com/p/asciidoc/source/detail?r=3da69321af16b341744...

Hi Stuart,
sorry for replying so late, but I accepted your answer "as is" and
didn't realize that you took the effort to modify code.

I have tested with several // a2x: --dblatex-opts "" lines, and they
work as expected. Thank you.

I discovered a possible problem with the a2x directive:

When documenting how to use a2x: directive, I wrote the following far
down in my document:
----
// a2x: --dblatex-opts "-p mystyle.xsl"
----
It turned out that this text to be included in my document as literal
text was picked up by a2x as a directive. I was puzzled for a long
time why none of the --dblatex-opts in the header was picked up, no
matter how misspelled they were. I actually had a mystyle.xsl in my
working directory and when I renamed that one, a2x exited with an
error message. With your current modification, the problem still
appears since it gets added to the list of command line options. If
the file doesn't exist, a2x always exits, and if it exists, its
content will override anything defined in the header. I guess I have
to escape those backslashes.

--
Svenn

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