On 26/10/11 13:45, Dag Wieers wrote:

So I replaced OO with LibreOffice 3.3.2 and it now opens the .fodt files. I
processed the distribution doc/article.txt file but the output displays as
blank and lowriter emits this error:

$ asciidoc -b odt doc/article.txt

$ lowriter doc/article.fodt &

Warning: at xsl:stylesheet on line 2 of
file:///usr/lib/libreoffice/basis3.3/share/xslt/odfflatxml/odfflatxmlimport.xsl:
Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Error on line 385 column 3
SXXP0003: Error reported by XML parser: The element type "text:p" must be
terminated by
the matching end-tag "</text:p>".

That is strange. It would be nice to understand what would generate a <text:p>
without a matching </text:p>. I remember fixing one of these in the
admonition-support when icons where not enabled, maybe you pulled before that
fix was added 4 days ago ?

I think this is the fix (looks like a slip of the enter key, the </text:a> was inserted even when {link} was undefined):

diff --git a/odt.conf b/odt.conf
index 563df6c..a4890e1 100644
--- a/odt.conf
+++ b/odt.conf
@@ -89,8 +89,7 @@ latexmath-style=template="latexmathblock",subs=[]
 {link%}{data-uri%}<draw:image xlink:href="{imagesdir=}{imagesdir?/}{target}" xl
 {link%}{data-uri#}<draw:image><office:binary-data>{sys:python -uc "import base6
 {link%}</draw:frame>
-{link#}
-</text:a>
+{link#}</text:a>

 ### FIXME: Add {target}, {role}, {id}, {align} and {float}?
 [image-blockmacro]


Will take me a bit more time to digest the rest of your email.


Cheers, Stuart

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