mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +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
|
# remove final char properties
|
||||||
n = len(lines)
|
n = len(lines)
|
||||||
|
changed_prop = []
|
||||||
|
|
||||||
while n:
|
while n:
|
||||||
n = n - 1
|
n = n - 1
|
||||||
if not lines[n]:
|
if not lines[n]:
|
||||||
@ -230,6 +232,7 @@ def set_paragraph_properties(lines, prop_dict):
|
|||||||
result = prop_exp.match(lines[n])
|
result = prop_exp.match(lines[n])
|
||||||
prop = result.group(1)
|
prop = result.group(1)
|
||||||
if prop in properties:
|
if prop in properties:
|
||||||
|
changed_prop.append(prop)
|
||||||
prop_dict[prop] = result.group(2)
|
prop_dict[prop] = result.group(2)
|
||||||
del lines[n]
|
del lines[n]
|
||||||
continue
|
continue
|
||||||
@ -240,6 +243,13 @@ def set_paragraph_properties(lines, prop_dict):
|
|||||||
lines.append('')
|
lines.append('')
|
||||||
break
|
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:]:
|
if not lines[start:] and not lines[end:]:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user