]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/parser_tools.py
Some refinements in the lyx2lyx methods
[lyx.git] / lib / lyx2lyx / parser_tools.py
index 24bf91c7a5d8362654d816076fadeb77d276200c..83cf303225db2c779fd8c3f56147aef3fd728727 100644 (file)
@@ -466,8 +466,7 @@ def get_containing_layout(lines, i):
                 "\\paragraph_spacing other", "\\align", "\\labelwidthstring"]
   stpar = stlay
   while True:
-      if lines[stpar + 1] in par_params:
-          stpar += 1
-      else:
+      stpar += 1
+      if lines[stpar] not in par_params:
           break
   return (lay, stlay, endlay, stpar)