]> git.lyx.org Git - features.git/commitdiff
Ignore whitelines on header. Fix reading the first body line.
authorJosé Matox <jamatos@lyx.org>
Thu, 7 Jul 2005 09:19:50 +0000 (09:19 +0000)
committerJosé Matox <jamatos@lyx.org>
Thu, 7 Jul 2005 09:19:50 +0000 (09:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10144 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/ChangeLog
lib/lyx2lyx/LyX.py

index 6e0e7fcf683fb697bc681f98fae26b515df719d9..ca573b5d07c85529eb796ecbfd80e17096d20069 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-07  José Matos  <jamatos@lyx.org>
+
+       * LyX.py (read): Ignore whitelines on header. Fix reading the
+       first body line.
+
 2005-07-06  José Matos  <jamatos@lyx.org>
 
        * lyx_1_1_5.py (replace_protected_separator): Make it robust
index 1bba4670a342e5c3e8ccb06dd8906e536d4db91a..85f2c8339f9a7c331d47743c03fcddda798672df 100644 (file)
@@ -155,10 +155,10 @@ class LyX_Base:
 
             if not preamble:
                 if not line:
-                    break
+                    continue
 
                 if string.split(line)[0] in ("\\layout", "\\begin_layout", "\\begin_body"):
-                    self.body.append(string.split(line)[0])
+                    self.body.append(line)
                     break
 
             self.header.append(line)