mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix typo in lyx2lyx conversion to 2.1 (taken from master)
This commit is contained in:
parent
2b949e42f7
commit
78db6194c6
@ -180,7 +180,7 @@ def convert_TeX_brace_to_Argument(document, line, n, nmax, inset, environment, o
|
||||
else:
|
||||
beginBrace = find_token(document.body, "{", endBrace, end_layout)
|
||||
# assure that the ERTs are consecutive (11 or 12 depending if there is a space between the ERTs or not)
|
||||
if beginBrance != -1 and (beginBrace == endBrace + 11 or beginBrace == endBrace + 12):
|
||||
if beginBrace != -1 and (beginBrace == endBrace + 11 or beginBrace == endBrace + 12):
|
||||
end = find_token(document.body, "\\end_inset", beginBrace)
|
||||
document.body[lineERT : end + 1] = ["\\end_layout", "", "\\end_inset"]
|
||||
if loop == 1:
|
||||
|
@ -182,7 +182,8 @@ What's new
|
||||
|
||||
* LYX2LYX
|
||||
|
||||
|
||||
- Fix typo in the code that converts from file formats older than lyx 2.1
|
||||
(thanks to Salvatore Falco).
|
||||
|
||||
|
||||
* TEX2LYX
|
||||
|
Loading…
Reference in New Issue
Block a user