mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Remove unnecessary argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36032 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a678ee4bdf
commit
03efa930c6
@ -362,9 +362,10 @@ def revert_flex_inset(document, name, LaTeXname, position):
|
||||
i += 1
|
||||
|
||||
|
||||
def revert_font_attrs(document, name, LaTeXname, changed):
|
||||
" Reverts character styles to TeX code "
|
||||
def revert_font_attrs(document, name, LaTeXname):
|
||||
" Reverts font changes to TeX code "
|
||||
i = 0
|
||||
changed = False
|
||||
while True:
|
||||
i = find_token(document.body, name + ' on', i)
|
||||
if i == -1:
|
||||
@ -833,10 +834,9 @@ def revert_printindexall(document):
|
||||
|
||||
def revert_strikeout(document):
|
||||
" Reverts \\strikeout character style "
|
||||
changed = False
|
||||
changed = revert_font_attrs(document, "\\uuline", "\\uuline", changed)
|
||||
changed = revert_font_attrs(document, "\\uwave", "\\uwave", changed)
|
||||
changed = revert_font_attrs(document, "\\strikeout", "\\sout", changed)
|
||||
changed = revert_font_attrs(document, "\\uuline", "\\uuline")
|
||||
changed = revert_font_attrs(document, "\\uwave", "\\uwave") or changed
|
||||
changed = revert_font_attrs(document, "\\strikeout", "\\sout") or changed
|
||||
if changed == True:
|
||||
insert_to_preamble(0, document,
|
||||
'% Commands inserted by lyx2lyx for proper underlining\n'
|
||||
|
Loading…
Reference in New Issue
Block a user