mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +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_token_backwards, find_token_exact, find_re, get_bool_value,
|
||||
get_containing_inset, get_containing_layout, get_option_value, get_value,
|
||||
get_quoted_value)
|
||||
get_quoted_value, is_in_inset)
|
||||
# del_value,
|
||||
# find_complete_lines,
|
||||
# find_re, find_substring,
|
||||
# is_in_inset, set_bool_value
|
||||
# set_bool_value
|
||||
# find_tokens, check_token
|
||||
|
||||
from lyx2lyx_tools import (put_cmd_in_ert, add_to_preamble, insert_to_preamble, lyx2latex,
|
||||
@ -1649,8 +1649,8 @@ def convert_hebrew_parentheses(document):
|
||||
continue
|
||||
elif line.startswith('\\end_inset'):
|
||||
if inset_is_arg:
|
||||
inset_is_arg = False
|
||||
else:
|
||||
inset_is_arg = is_in_inset(document.body, i, "\\begin_inset Argument")[0] != -1
|
||||
else:
|
||||
current_insets.pop()
|
||||
elif current_languages[-1] == 'hebrew' and not line.startswith('\\'):
|
||||
document.body[i] = line.replace('(','\x00').replace(')','(').replace('\x00',')')
|
||||
|
Loading…
Reference in New Issue
Block a user