Am Freitag, 16. September 2005 16:31 schrieb Jean-Marc Lasgouttes:

> Nevertheless, the bug you are looking for is in lib/doc/doc_toc.py.

Yes, doc_toc.py does not include the english versions of the documents 
that are not yet translated, but there are also two bugs in lyx2lyx.

This patch fixes them, can it go in?


Georg
diff -p -r -U 3 -X excl.tmp lyx-1.4-clean/lib/lyx2lyx/ChangeLog lyx-1.4-cvs/lib/lyx2lyx/ChangeLog
--- lyx-1.4-clean/lib/lyx2lyx/ChangeLog	2005-09-10 13:02:46.000000000 +0200
+++ lyx-1.4-cvs/lib/lyx2lyx/ChangeLog	2005-09-18 10:10:17.000000000 +0200
@@ -1,3 +1,8 @@
+2005-09-18  Georg Baum  <[EMAIL PROTECTED]>
+
+	* LyX.py (LyX_Base): fix paragraph parameter check
+	* LyX.py (NewFile): remove paperpackage from header
+
 2005-09-09  José Matos  <[EMAIL PROTECTED]>
 
 	* lyx_1_1_6fix3.py (update_tabular): fix vertical alignment convertion.
diff -p -r -U 3 -X excl.tmp lyx-1.4-clean/lib/lyx2lyx/LyX.py lyx-1.4-cvs/lib/lyx2lyx/LyX.py
--- lyx-1.4-clean/lib/lyx2lyx/LyX.py	2005-08-19 10:47:40.000000000 +0200
+++ lyx-1.4-cvs/lib/lyx2lyx/LyX.py	2005-09-18 10:06:04.000000000 +0200
@@ -420,7 +436,7 @@ class LyX_Base:
 
             k = i + 1
             # skip paragraph parameters
-            while not string.strip(self.body[k]) and string.split(self.body[k])[0] in allowed_parameters:
+            while not string.strip(self.body[k]) or string.split(self.body[k])[0] in allowed_parameters:
                 k = k +1
 
             while k < j:
@@ -471,7 +489,6 @@ class NewFile(LyX_Base):
             "\\graphics default",
             "\\paperfontsize default",
             "\\papersize default",
-            "\\paperpackage none",
             "\\use_geometry false",
             "\\use_amsmath 1",
             "\\cite_engine basic",

Reply via email to