From 32ab25b3cb3b5b0790feb5f5d49869319ec466e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Thu, 7 Jul 2005 09:19:50 +0000 Subject: [PATCH] Ignore whitelines on header. Fix reading the first body line. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10144 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/ChangeLog | 5 +++++ lib/lyx2lyx/LyX.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/lyx2lyx/ChangeLog b/lib/lyx2lyx/ChangeLog index 6e0e7fcf68..ca573b5d07 100644 --- a/lib/lyx2lyx/ChangeLog +++ b/lib/lyx2lyx/ChangeLog @@ -1,3 +1,8 @@ +2005-07-07 José Matos + + * LyX.py (read): Ignore whitelines on header. Fix reading the + first body line. + 2005-07-06 José Matos * lyx_1_1_5.py (replace_protected_separator): Make it robust diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 1bba4670a3..85f2c8339f 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -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) -- 2.39.5