mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +00:00
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:
parent
f4250078d9
commit
9dccd39bd2
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user