From 6894562a132c58908b6ac26b9e7b158551814c87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Mon, 26 Aug 2002 19:00:56 +0000 Subject: [PATCH] Diff for 2.16 -> 2.17 is only whitespace now git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5114 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyxconvert_216.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/lyx2lyx/lyxconvert_216.py b/lib/lyx2lyx/lyxconvert_216.py index 66c1aa0598..5a6a6be8c2 100644 --- a/lib/lyx2lyx/lyxconvert_216.py +++ b/lib/lyx2lyx/lyxconvert_216.py @@ -220,6 +220,8 @@ def set_paragraph_properties(lines, prop_dict): # remove final char properties n = len(lines) + changed_prop = [] + while n: n = n - 1 if not lines[n]: @@ -230,6 +232,7 @@ def set_paragraph_properties(lines, prop_dict): result = prop_exp.match(lines[n]) prop = result.group(1) if prop in properties: + changed_prop.append(prop) prop_dict[prop] = result.group(2) del lines[n] continue @@ -240,6 +243,13 @@ def set_paragraph_properties(lines, prop_dict): lines.append('') break + for line in lines[end:]: + if line[:1] == '\\': + result = prop_exp.match(line) + prop = result.group(1) + if prop in properties and prop not in changed_prop: + prop_dict[prop] = result.group(2) + if not lines[start:] and not lines[end:]: return [] -- 2.39.5