On Tuesday 17 July 2007 16:51:56 [EMAIL PROTECTED] wrote:
> > Hi,
> > Here is an example written in lyx 1.4
> > best regards
> > bela
OK, the problem was easy to spot. :-)
Just for reference here it is the patch that fixes the problem:
Index: lyx_1_5.py
===================================================================
--- lyx_1_5.py (revision 19100)
+++ lyx_1_5.py (working copy)
@@ -444,6 +444,13 @@
i = i + 1
continue
+ j = find_token(document.body, "\\end_inset", i)
+ if j == -1:
+ document.warning("Malformed document")
+ else:
+ command += "".join(document.body[i+1:j])
+ document.body[i+1:j] = []
+
# The following parser is taken from the original
InsetCommandParams::scanCommand
name = ""
option1 = ""
--
José Abílio