Add support for cases where the body begins without a whiteline before (sgml2lyx)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10142 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-06 18:35:35 +00:00
parent 7ed89fefb1
commit 4a85fd5ed0
2 changed files with 15 additions and 5 deletions

View File

@ -1,15 +1,20 @@
2005-07-06 José Matos <jamatos@lyx.org>
* lyx_1_4.lyx (paperpackage): Fix empty paperpackage case.
* LyX.py (read): Add support for cases where the body begins
without a whiteline before.
2005-07-06 José Matos <jamatos@lyx.org>
* lyx_1_4.py (paperpackage): Fix empty paperpackage case.
2005-07-06 José Matos <jamatos@lyx.org>
* LyX.py (warning): Prefix warnings with label "Warning: ".
* lyx_1_4.lyx (add_end_layout): Handle truncated files.
* lyx_1_4.py (add_end_layout): Handle truncated files.
2005-07-06 José Matos <jamatos@lyx.org>
* lyx_1_4.lyx (convert_paperpackage): older tex2lyx generated files
* lyx_1_4.py (convert_paperpackage): older tex2lyx generated files
had \paperpackage with 'default' instead of 'none'.
2005-07-05 José Matos <jamatos@lyx.org>

View File

@ -153,8 +153,13 @@ class LyX_Base:
if not preamble:
line = string.strip(line)
if not line and not preamble:
break
if not preamble:
if not line:
break
if string.split(line)[0] in ("\\layout", "\\begin_layout", "\\begin_body"):
self.body.append(string.split(line)[0])
break
self.header.append(line)