mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
lyx_2_0.py:
- remove 2 fixmes; we can be sure that there is space between the table entries - add comment for the preamble that got lost the last days git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36165 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b9b619641b
commit
613cad54a4
@ -951,7 +951,6 @@ def revert_multirow(document):
|
|||||||
multirow = True
|
multirow = True
|
||||||
# remove the multirow tag, set the valignment to top
|
# remove the multirow tag, set the valignment to top
|
||||||
# and remove the bottom line
|
# and remove the bottom line
|
||||||
# FIXME Are we sure these always have space around them?
|
|
||||||
document.body[i] = document.body[i].replace(' multirow="3" ', ' ')
|
document.body[i] = document.body[i].replace(' multirow="3" ', ' ')
|
||||||
document.body[i] = document.body[i].replace('valignment="middle"', 'valignment="top"')
|
document.body[i] = document.body[i].replace('valignment="middle"', 'valignment="top"')
|
||||||
document.body[i] = document.body[i].replace(' bottomline="true" ', ' ')
|
document.body[i] = document.body[i].replace(' bottomline="true" ', ' ')
|
||||||
@ -988,7 +987,6 @@ def revert_multirow(document):
|
|||||||
break
|
break
|
||||||
# remove the multirow tag, set the valignment to top
|
# remove the multirow tag, set the valignment to top
|
||||||
# and remove the top line
|
# and remove the top line
|
||||||
# FIXME Are we sure these always have space around them?
|
|
||||||
document.body[k] = document.body[k].replace(' multirow="4" ', ' ')
|
document.body[k] = document.body[k].replace(' multirow="4" ', ' ')
|
||||||
document.body[k] = document.body[k].replace('valignment="middle"', 'valignment="top"')
|
document.body[k] = document.body[k].replace('valignment="middle"', 'valignment="top"')
|
||||||
document.body[k] = document.body[k].replace(' topline="true" ', ' ')
|
document.body[k] = document.body[k].replace(' topline="true" ', ' ')
|
||||||
@ -997,6 +995,7 @@ def revert_multirow(document):
|
|||||||
i = cend
|
i = cend
|
||||||
|
|
||||||
if multirow == True:
|
if multirow == True:
|
||||||
|
add_to_preamble(document, ["% this command was inserted by lyx2lyx"])
|
||||||
add_to_preamble(document, ["\\usepackage{multirow}"])
|
add_to_preamble(document, ["\\usepackage{multirow}"])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user