+2005-02-15 José Matos <jamatos@lyx.org>
+
+ * lyx_1_2.py (remove_pextra): fix bug 1816.
+
2005-02-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* lyx_1_4.py (convert_ertbackslash): convert '\n', too
2005-02-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* lyx_1_4.py (convert_ertbackslash): convert '\n', too
pextra_type2_rexp = re.compile(r".*\\pextra_type\s+[12]")
pextra_type2_rexp2 = re.compile(r".*(\\layout|\\pextra_type\s+2)")
pextra_type2_rexp = re.compile(r".*\\pextra_type\s+[12]")
pextra_type2_rexp2 = re.compile(r".*(\\layout|\\pextra_type\s+2)")
+pextra_widthp = re.compile(r"\\pextra_widthp")
def remove_pextra(file):
lines = file.body
def remove_pextra(file):
lines = file.body
+ # Sometimes the \pextra_widthp argument comes in it own
+ # line. If that happens insert it back in this line.
+ if pextra_widthp.search(lines[i+1]):
+ lines[i] = lines[i] + ' ' + lines[i+1]
+ del lines[i+1]
+
mo = pextra_rexp.search(lines[i])
width = get_width(mo)
mo = pextra_rexp.search(lines[i])
width = get_width(mo)