mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
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:
parent
c1afe8596e
commit
0efa3f71a0
@ -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>
|
||||
|
||||
* lyx2lyx/lyxconvert_217.py: accept tag attributes without quotes.
|
||||
|
@ -127,6 +127,9 @@ def read_file(file, header, body):
|
||||
if check_token(line, '\\end_preamble'):
|
||||
preamble = 0
|
||||
|
||||
if not preamble:
|
||||
line = string.strip(line)
|
||||
|
||||
if not line and not preamble:
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user