mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
parent
f648b2e936
commit
9cd9712cf0
@ -450,7 +450,7 @@ def revert_font_attrs(lines, name, LaTeXname):
|
||||
while True:
|
||||
i = find_token(lines, name + ' on', i)
|
||||
if i == -1:
|
||||
return changed
|
||||
break
|
||||
j = find_token(lines, name + ' default', i)
|
||||
k = find_token(lines, name + ' on', i + 1)
|
||||
# if there is no default set, the style ends with the layout
|
||||
@ -464,6 +464,16 @@ def revert_font_attrs(lines, name, LaTeXname):
|
||||
changed = True
|
||||
i += 1
|
||||
|
||||
# now delete all remaining lines that manipulate this attribute
|
||||
i = 0
|
||||
while True:
|
||||
i = find_token(lines, name, i)
|
||||
if i = -1:
|
||||
break
|
||||
del lines[i]
|
||||
|
||||
return changed
|
||||
|
||||
|
||||
def revert_layout_command(lines, name, LaTeXname):
|
||||
" Reverts a command from a layout to TeX code "
|
||||
|
@ -99,6 +99,8 @@ What's new
|
||||
|
||||
- Speed up some lyx2lyx conversions (bug 11200).
|
||||
|
||||
- Fix routine that left some old parameters unremoved (bug 11373).
|
||||
|
||||
|
||||
* TEX2LYX
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user