From: José Matox Date: Wed, 4 May 2005 11:54:14 +0000 (+0000) Subject: Fix allowed parameters for paragraphs. X-Git-Tag: 1.6.10~14325 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3cbfd8cc80966a7cf5b1736bd29f50f039d7bde1;p=lyx.git Fix allowed parameters for paragraphs. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9904 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/ChangeLog b/lib/lyx2lyx/ChangeLog index d9d81782c1..708609d036 100644 --- a/lib/lyx2lyx/ChangeLog +++ b/lib/lyx2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-05-04 José Matos + + * LyX.py: fix allowed parameters for paragraphs. + 2005-04-26 Georg Baum * lyx_1_4.py (convert_breaks): fix spelling diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index eb49d914e6..e906912e17 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -358,6 +358,7 @@ class LyX_Base: " Returns the TOC of this LyX document." paragraphs_filter = {'Title' : 0,'Chapter' : 1, 'Section' : 2, 'Subsection' : 3, 'Subsubsection': 4} allowed_insets = ['Quotes'] + allowed_parameters = '\\paragraph_spacing', '\\noindent', '\\align', '\\labelwidthstring', "\\start_of_appendix" sections = [] for section in paragraphs_filter.keys(): @@ -383,7 +384,7 @@ class LyX_Base: k = i + 1 # skip paragraph parameters - while not self.body[k] or self.body[k][0] == '\\': + while not string.strip(self.body[k]) and string.split(self.body[k])[0] in allowed_parameters: k = k +1 while k < j: