On 27 February 2012 20:05, Jorge Marín G <[email protected]> wrote:
> Hello , I used asciidoc version 8.5.3 to create HTML documents from
> txt documents calling ascidocapi.py from java
> (org.python.util.PythonInterpreter).
>
> It worked very well until asciidoc version 8.6.5, but when I have
> tried to use the newest version (8.6.6) an exception is launched.
>
> I call the asciidocapi.py script in this way:
>
> 1- PythonInterpreter python = new PythonInterpreter();
> 2- python.exec("import imp");
> 3- python.exec("asciidocapi = imp.load_source('AsciiDocAPI', [PATH
> where
> is asciidocapi.py in my machine])");
>
> 4- python.exec("asciidoc = asciidocapi.AsciiDocAPI()");
> 5- python.exec("asciidoc.asciidoc.execute(''file.txt')");
>
> When I did that, I got a file.HTML using previous asciidoc versions,
> but now, with version 8.6.6 I get the next exception:
>
> asciidoc: FAILED: malformed [titles] underlines entry

This looks like a normal error message due to an incorrect input.

Try running asciidoc with standard python on the command line with the
same input file and see if it gets the same error.

If it does its the input file, if it does not then possibly it is due
to some difference between Jython and CPython.

As far as I know Stuart does not have the resources to test asciidoc
on any Python implementations other than the standard one.

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.

Reply via email to