Hi Stuart,

There have been several questions lately about how to set up things
for different output formats.

When using a2x asciidoc doesn't know what the output format is,

The attached patch to a2x sets attribute {format} to its format option
so documents can adjust themselves accordingly.

Not sure if it should be documented in a2x or asciidoc or both?

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.

493,495c493,494
<         shell('"%s" --backend docbook -a "format=%s" %s --out-file "%s" "%s"' %
<              (ASCIIDOC, self.format, self.asciidoc_opts, docbook_file,
<               self.asciidoc_file))
---
>         shell('"%s" --backend docbook %s --out-file "%s" "%s"' %
>              (ASCIIDOC, self.asciidoc_opts, docbook_file, self.asciidoc_file))
625,627c624,625
<             shell('"%s" %s --conf-file "%s" -b html4 -a "format=%s" -o "%s" "%s"' %
<                  (ASCIIDOC, self.format, self.asciidoc_opts,
<                   self.asciidoc_conf_file('text.conf'),
---
>             shell('"%s" %s --conf-file "%s" -b html4 -o "%s" "%s"' %
>                  (ASCIIDOC, self.asciidoc_opts, self.asciidoc_conf_file('text.conf'),

Reply via email to