Just a restructuring, with early continue.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36020 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-03 22:22:00 +00:00
parent 7dad1e1c5d
commit 40ad4b4d63

View File

@ -455,15 +455,15 @@ def revert_tabularvalign(document):
document.body[i + 2] = document.body[i + 2][:q - 1]
document.body[i + 2] = document.body[i + 2] + '>'
i = i + 1
continue
# when no longtable
if p == -1:
# no longtable
tabularvalignment = 'c'
# which valignment is specified?
m = document.body[i + 2].find('tabularvalignment="top"')
if m > -1:
tabularvalignment = 't'
m = document.body[ i+ 2].find('tabularvalignment="bottom"')
m = document.body[i + 2].find('tabularvalignment="bottom"')
if m > -1:
tabularvalignment = 'b'
# delete tabularvalignment