On Monday 06 March 2006 10:42, Jose' Matos wrote:
>   Jean-Marc is there any reason not to maintain the papersize when removing
> the support for a4?

  Please ignore me, I found the reason. :-)

>   The code in lyx2lyx is mine and I think that we have done that in Paris.
> I don't remember the reason why it is coded like this.

  Attached follows a patch that fixes the problem.

  Lars may I apply it to 1.4 branch?

-- 
José Abílio
Index: lyx_1_4.py
===================================================================
--- lyx_1_4.py	(revision 13302)
+++ lyx_1_4.py	(working copy)
@@ -2342,6 +2342,10 @@
 
     paperpackage = split(file.header[i])[1]
 
+    if paperpackage == 'none':
+        del file.header[i]
+        return
+
     if paperpackage in ("a4", "a4wide", "widemarginsa4"):
         conv = {"a4":"\\usepackage{a4}","a4wide": "\\usepackage{a4wide}",
                 "widemarginsa4": "\\usepackage[widemargins]{a4}"}

Reply via email to