mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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
This commit is contained in:
parent
bee4ac06d8
commit
6894562a13
@ -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 []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user