From: José Matox Date: Thu, 7 Jul 2005 09:19:50 +0000 (+0000) Subject: Ignore whitelines on header. Fix reading the first body line. X-Git-Tag: 1.6.10~14167 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=32ab25b3cb3b5b0790feb5f5d49869319ec466e4;p=features.git 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 --- 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)