]> git.lyx.org Git - features.git/commitdiff
Fix alignment of fixed width columns.
authorDekel Tsur <dekelts@tau.ac.il>
Sat, 4 Jan 2003 16:16:40 +0000 (16:16 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Sat, 4 Jan 2003 16:16:40 +0000 (16:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5902 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/lyx2lyx/lyxconvert_220.py

index b92cfd35c2831f60a5f4e48068ee5311d1d21e5e..9709d0e1fc321a62e518c0a355ee2f50fcf40590 100644 (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: 
index b0976b026ec2edec6a75670a05bff52c24fc69c3..4aee53b39a222a2666aa7e0f6564586b69113e73 100644 (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