mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
lyx2lyx/lyx_2_1.py: add missing things from previous commit (cherry pick seems to make mistakes or I used it not correctly)
This commit is contained in:
parent
ea54461d85
commit
34014336fa
@ -644,6 +644,7 @@ def revert_table_rotation(document):
|
||||
return
|
||||
j = document.body[i].find('rotate="')
|
||||
if j != -1:
|
||||
end_table = find_token(document.body, '</lyxtabular>', j)
|
||||
k = document.body[i].find('"', j + 8)
|
||||
value = document.body[i][j + 8 : k]
|
||||
if value == "0":
|
||||
@ -659,9 +660,9 @@ def revert_table_rotation(document):
|
||||
# remove rotate option
|
||||
document.body[i] = rgx.sub('', document.body[i])
|
||||
# write ERT
|
||||
document.body[i + 5 : i + 5] = \
|
||||
document.body[end_table + 3 : end_table + 3] = \
|
||||
put_cmd_in_ert("\\end{turn}")
|
||||
document.body[i + 4 : i + 4] = \
|
||||
document.body[i - 2 : i - 2] = \
|
||||
put_cmd_in_ert("\\begin{turn}{" + value + "}")
|
||||
|
||||
i += 1
|
||||
|
Loading…
Reference in New Issue
Block a user