Fix alignment of fixed width columns.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5902 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2003-01-04 16:16:40 +00:00
parent f4250078d9
commit 9dccd39bd2
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-01-04 Dekel Tsur <dekelts@tau.ac.il>
* lyx2lyx/lyxconvert_220.py: Fix alignment of fixed width columns.
2002-12-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* layouts/cl2emult.layout:

View File

@ -75,9 +75,19 @@ def change_insetgraphics(lines):
i = i+1
def change_tabular(lines):
i = 0
while 1:
i = find_token(lines, "<column", i)
if i == -1:
break
if not re.search('width="0pt"', lines[i]):
lines[i] = re.sub(' alignment=".*?"',' alignment="block"',lines[i])
i = i+1
def convert(header, body):
change_insetgraphics(body)
change_tabular(body)
if __name__ == "__main__":
pass