]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyx_1_1_6fix3.py
Reorganised lyx2lyx, transfering it knowleadge of the file format to LyX.py,
[features.git] / lib / lyx2lyx / lyx_1_1_6fix3.py
index b38f0047e18b9e5a302003ee02e0d2684c45fab5..6155f7e9929c735257b4a59a263781e17526900a 100644 (file)
@@ -113,13 +113,13 @@ def table_update(lines):
     return lines[:2] + col_info + lines[2:]
 
 
-def convert(header, body, opt):
-    update_tabular(body, opt)
-    opt.format = 218
+def convert(file):
+    update_tabular(file.body, file)
+    file.format = 218
 
 
-def revert(header, body, opt):
-    opt.error("The convertion to an older format (%s) is not implemented." % opt.format)
+def revert(file):
+    file.error("The convertion to an older format (%s) is not implemented." % file.format)
 
 
 if __name__ == "__main__":