Hi all

I need to invoke a program in a inline-macro and thought I could do this
via the {sys:} system attribute. However, it seems that something really
strange happens, with the {passtext} string.

In the attached example, I have the custom macro echo:[<text>] which
invokes the python script filter.py. That script just writes its first
argument to the file "somefile", reads the file back and prints the
results to stderr and stdout.

Now, what happens, is that everything seems to be fine in the generated
output (test.html), but the temporary file "somefile" only seems to
contain nonsense. No matter what the argument to the echo:[] macro is,
it only contains '&#7;0&#7;' (where I used decimal character entities).
Also, the output on stderr only shows a 0. Running asciidoc in verbose
mode shows the invocation of filter.py only with the 0, too.

How can this be? How can the output of asciidoc be fine, when the
intermediate file clearly is not. In reality my filter.py is more
complicated, of course, and needs to invoke other tools on the
intermediate file before creating the final output, which, of course,
choke on it.

Thanks for any help on this...

Michael

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

Attachment: test.tgz
Description: application/compressed-tar

Reply via email to