mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
lyx_2_3.py: whitespace fixes
This commit is contained in:
parent
1ad2eb3b5b
commit
6c2a8df504
@ -1984,7 +1984,7 @@ def convert_mathindent(document):
|
||||
document.header[i] = document.header[i].replace("fleqn,", "")
|
||||
j = find_re(document.header, regexp, 0)
|
||||
if i == j:
|
||||
# then we have fleqn as the only option
|
||||
# then we have fleqn as the only option
|
||||
del document.header[i]
|
||||
else:
|
||||
document.header.insert(k, "\\is_math_indent 0")
|
||||
@ -2006,7 +2006,7 @@ def revert_mathindent(document):
|
||||
regexp = re.compile(r'(\\is_math_indent)')
|
||||
j = find_re(document.header, regexp, 0)
|
||||
del document.header[j]
|
||||
else:
|
||||
else:
|
||||
k = find_token(document.header, "\\options", 0)
|
||||
if k != -1:
|
||||
document.header[k] = document.header[k].replace("\\options", "\\options fleqn,")
|
||||
|
Loading…
Reference in New Issue
Block a user