Support old tables format 1.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10150 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-08 09:13:51 +00:00
parent e87254ab12
commit b666ae90e3
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2005-07-08 José Matos <jamatos@lyx.org>
* lyx_0_12.py (update_tabular): Support old tables format 1.
2005-07-08 José Matos <jamatos@lyx.org>
* lyx_1_1_5.py (latexdel_getargs, update_ref, update_latexdel):

View File

@ -46,7 +46,7 @@ def formula_inset_space_eat(file):
i = i + 1
# Update from tabular format 2 to 4
# Update from tabular format 1 or 2 to 4
def update_tabular(file):
lines = file.body
lyxtable_re = re.compile(r".*\\LyXTable$")
@ -56,7 +56,7 @@ def update_tabular(file):
if i == -1:
break
i = i + 1
format = lines[i][8]
format = lines[i][8:]
lines[i]='multicol4'
i = i + 1
@ -74,10 +74,13 @@ def update_tabular(file):
lines[i] = lines[i] + ' '
i = i + 1
while lines[i]:
while string.strip(lines[i]):
if not format:
lines[i] = lines[i] + ' 1 1'
lines[i] = lines[i] + ' 0 0 0'
i = i + 1
lines[i] = string.strip(lines[i])
def final_dot(file):
lines = file.body