]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyx_1_4.py
fix convertion of line and page breaks.
[features.git] / lib / lyx2lyx / lyx_1_4.py
index 7491dcad53d32010c1813450a1260b115f22f4b0..eb0c91edba3915dc868f961b96f480af49003289 100644 (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")