Fix weird case where the first body line has only a space

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5914 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-01-07 17:03:59 +00:00
parent c1afe8596e
commit 0efa3f71a0
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-01-07 José Abílio Oliveira Matos <jamatos@lyx.org>
* lyx2lyx/lyx2lyx.py: trims whitespace from header if not in preamble.
2003-01-07 José Abílio Oliveira Matos <jamatos@lyx.org> 2003-01-07 José Abílio Oliveira Matos <jamatos@lyx.org>
* lyx2lyx/lyxconvert_217.py: accept tag attributes without quotes. * lyx2lyx/lyxconvert_217.py: accept tag attributes without quotes.

View File

@ -127,6 +127,9 @@ def read_file(file, header, body):
if check_token(line, '\\end_preamble'): if check_token(line, '\\end_preamble'):
preamble = 0 preamble = 0
if not preamble:
line = string.strip(line)
if not line and not preamble: if not line and not preamble:
break break