From: José Matox Date: Fri, 6 May 2005 14:31:56 +0000 (+0000) Subject: fix convertion of line and page breaks. X-Git-Tag: 1.6.10~14314 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=214cedc2e8871cd7348393fbb70c8259ccdc44aa;p=features.git fix convertion of line and page breaks. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9915 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/ChangeLog b/lib/lyx2lyx/ChangeLog index 708609d036..724013af47 100644 --- a/lib/lyx2lyx/ChangeLog +++ b/lib/lyx2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-05-06 José Matos + + * lyx_1_4.py (convert_breaks): put all paragraph parameters into a single line. + 2005-05-04 José Matos * LyX.py: fix allowed parameters for paragraphs. diff --git a/lib/lyx2lyx/lyx_1_4.py b/lib/lyx2lyx/lyx_1_4.py index 7491dcad53..eb0c91edba 100644 --- a/lib/lyx2lyx/lyx_1_4.py +++ b/lib/lyx2lyx/lyx_1_4.py @@ -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")