fix convertion of line and page breaks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9915 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-05-06 14:31:56 +00:00
parent 63ebe9def7
commit 214cedc2e8
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-05-06 José Matos <jamatos@lyx.org>
* lyx_1_4.py (convert_breaks): put all paragraph parameters into a single line.
2005-05-04 José Matos <jamatos@lyx.org>
* LyX.py: fix allowed parameters for paragraphs.

View File

@ -524,6 +524,12 @@ def convert_breaks(file):
if i == -1:
return
i = i + 1
# Merge all paragraph parameters into a single line
while file.body[i + 1][:1] == '\\':
file.body[i] = file.body[i + 1] + ' ' + file.body[i]
del file.body[i+1]
line_top = find(file.body[i],"\\line_top")
line_bot = find(file.body[i],"\\line_bottom")
pb_top = find(file.body[i],"\\pagebreak_top")