lyxconvert_224.py(convert_breaks): avoid removal of paragraph

arguments when a page breake or a line were present.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8085 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-11-14 11:55:25 +00:00
parent a0dc427004
commit 0aa310da46
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-11-14 José Matos <jamatos@lyx.org>
* lyxconvert_224.py(convert_breaks): avoid removal of paragraph
arguments when a page breake or a line were present.
2003-11-07 José Matos <jamatos@lyx.org>
* lyxconvert_224.py (convert_minipage): deal better with default

View File

@ -18,7 +18,7 @@
import re
from parser_tools import find_token, find_tokens, find_end_of_inset, find_end_of
from sys import stderr
from string import replace, split, find
from string import replace, split, find, replace, strip
def add_end_layout(lines):
i = find_token(lines, '\\layout', 0)
@ -203,7 +203,9 @@ def convert_breaks(lines):
if line_top == -1 and line_bot == -1 and pb_bot == -1 and pb_top == -1:
continue
lines[i] = ""
for tag in "\\line_top", "\\line_bottom", "\\pagebreak_top", "\\pagebreak_bottom":
lines[i] = replace(lines[i], tag, "")
lines[i] = strip(lines[i])
i = i + 1
# Create an empty paragraph for line and page break that belong