mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +00:00
Fix and simplify par params parsing in get_containing_layout.
The previous version did not catch \align <alignment>.
This commit is contained in:
parent
42c51e7169
commit
560a421e58
@ -470,13 +470,12 @@ def get_containing_layout(lines, i):
|
|||||||
# shouldn't happen
|
# shouldn't happen
|
||||||
return False
|
return False
|
||||||
par_params = ["\\noindent", "\\indent", "\\indent-toggle", "\\leftindent",
|
par_params = ["\\noindent", "\\indent", "\\indent-toggle", "\\leftindent",
|
||||||
"\\start_of_appendix", "\\paragraph_spacing single",
|
"\\start_of_appendix", "\\paragraph_spacing", "\\align",
|
||||||
"\\paragraph_spacing onehalf", "\\paragraph_spacing double",
|
"\\labelwidthstring"]
|
||||||
"\\paragraph_spacing other", "\\align", "\\labelwidthstring"]
|
|
||||||
stpar = stlay
|
stpar = stlay
|
||||||
while True:
|
while True:
|
||||||
stpar += 1
|
stpar += 1
|
||||||
if lines[stpar] not in par_params:
|
if lines[stpar].split(' ', 1)[0] not in par_params:
|
||||||
break
|
break
|
||||||
return (lay, stlay, endlay, stpar)
|
return (lay, stlay, endlay, stpar)
|
||||||
|
|
||||||
|
@ -108,6 +108,8 @@ What's new
|
|||||||
- Fix import of ERT beamer block titles which are preceeded by a
|
- Fix import of ERT beamer block titles which are preceeded by a
|
||||||
language switch.
|
language switch.
|
||||||
|
|
||||||
|
- Fix and simplify paragraph params parsing in get_containing_layout.
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user