mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36232 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
06e963f73e
commit
a1589fb091
@ -949,7 +949,6 @@ def revert_multirow(document):
|
||||
add_to_preamble(document, ["\\usepackage{multirow}"])
|
||||
|
||||
begin_table = 0
|
||||
mrstarts = []
|
||||
while True:
|
||||
# find begin/end of table
|
||||
begin_table = find_token(document.body, '<lyxtabular version=', begin_table)
|
||||
@ -978,6 +977,7 @@ def revert_multirow(document):
|
||||
begin_table = end_table
|
||||
continue
|
||||
|
||||
mrstarts = []
|
||||
multirows = []
|
||||
# collect info on rows and columns of this table.
|
||||
begin_row = begin_table
|
||||
@ -1014,8 +1014,7 @@ def revert_multirow(document):
|
||||
multirows[row][column][2] = 4 # in multirow
|
||||
begin_cell = end_cell
|
||||
begin_row = end_row
|
||||
# end for loops
|
||||
begin_table = end_table
|
||||
# end of table info collection
|
||||
|
||||
# work from the back to avoid messing up numbering
|
||||
mrstarts.reverse()
|
||||
@ -1064,6 +1063,8 @@ def revert_multirow(document):
|
||||
document.body[blay + 1:blay + 1] = \
|
||||
put_cmd_in_ert("\\multirow{" + str(nummrs) + "}{" + col_width + "}{")
|
||||
|
||||
begin_table = end_table
|
||||
|
||||
|
||||
def convert_math_output(document):
|
||||
" Convert \html_use_mathml to \html_math_output "
|
||||
|
Loading…
Reference in New Issue
Block a user