Stupid mistake. Fixed at 20678.


[EMAIL PROTECTED] wrote:
Author: uwestoehr
Date: Wed Oct  3 02:09:47 2007
New Revision: 20677

URL: http://www.lyx.org/trac/changeset/20677
Log:
lyx_1_6.py: fix endless loop, but routine is still not working, see 
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg128426.html

Modified:
    lyx-devel/trunk/lib/lyx2lyx/lyx_1_6.py

Modified: lyx-devel/trunk/lib/lyx2lyx/lyx_1_6.py
URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/lib/lyx2lyx/lyx_1_6.py?rev=20677
==============================================================================
--- lyx-devel/trunk/lib/lyx2lyx/lyx_1_6.py (original)
+++ lyx-devel/trunk/lib/lyx2lyx/lyx_1_6.py Wed Oct  3 02:09:47 2007
@@ -303,6 +303,8 @@
     Some insets may end up being converted to insets earlier versions of LyX
     will not be able to recognize. Not sure what to do about that.
   """
+  # FIXME, this routine doesn't work, must be fixed before LyX 1.6.0, see
+  # http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg128426.html
   i = 0
   while 1:
     i = find_token(document.body, "\\begin_inset CommandInset", i)
@@ -311,7 +313,7 @@
     m = r.match(nextline)
     if not m:
       document.warning("Malformed LyX document: Missing LatexCommand in " + 
document.body[i] + ".")
-      continue
+      return
     cmdName = m.group(1)
     insertion = ["\\begin_inset LatexCommand " + cmdName]
     document.body[i : i+2] = insertion


_______________________________________________
Cvslog mailing list
[EMAIL PROTECTED]
http://www.lyx.org/mailman/listinfo/cvslog


--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to