mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
Fix lyx2lyx bug with nested inset arguments
This commit is contained in:
parent
a48e32fbe6
commit
de04f3270e
@ -30,11 +30,11 @@ from parser_tools import (count_pars_in_inset, del_complete_lines, del_token,
|
|||||||
find_end_of, find_end_of_inset, find_end_of_layout, find_token,
|
find_end_of, find_end_of_inset, find_end_of_layout, find_token,
|
||||||
find_token_backwards, find_token_exact, find_re, get_bool_value,
|
find_token_backwards, find_token_exact, find_re, get_bool_value,
|
||||||
get_containing_inset, get_containing_layout, get_option_value, get_value,
|
get_containing_inset, get_containing_layout, get_option_value, get_value,
|
||||||
get_quoted_value)
|
get_quoted_value, is_in_inset)
|
||||||
# del_value,
|
# del_value,
|
||||||
# find_complete_lines,
|
# find_complete_lines,
|
||||||
# find_re, find_substring,
|
# find_re, find_substring,
|
||||||
# is_in_inset, set_bool_value
|
# set_bool_value
|
||||||
# find_tokens, check_token
|
# find_tokens, check_token
|
||||||
|
|
||||||
from lyx2lyx_tools import (put_cmd_in_ert, add_to_preamble, insert_to_preamble, lyx2latex,
|
from lyx2lyx_tools import (put_cmd_in_ert, add_to_preamble, insert_to_preamble, lyx2latex,
|
||||||
@ -1649,7 +1649,7 @@ def convert_hebrew_parentheses(document):
|
|||||||
continue
|
continue
|
||||||
elif line.startswith('\\end_inset'):
|
elif line.startswith('\\end_inset'):
|
||||||
if inset_is_arg:
|
if inset_is_arg:
|
||||||
inset_is_arg = False
|
inset_is_arg = is_in_inset(document.body, i, "\\begin_inset Argument")[0] != -1
|
||||||
else:
|
else:
|
||||||
current_insets.pop()
|
current_insets.pop()
|
||||||
elif current_languages[-1] == 'hebrew' and not line.startswith('\\'):
|
elif current_languages[-1] == 'hebrew' and not line.startswith('\\'):
|
||||||
|
Loading…
Reference in New Issue
Block a user