mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
61ae37d726
commit
debc7438d2
@ -175,7 +175,7 @@ class Rule(object):
|
|||||||
|
|
||||||
def process_declaration(self, declaration):
|
def process_declaration(self, declaration):
|
||||||
oval, declaration.changed = declaration.changed, False
|
oval, declaration.changed = declaration.changed, False
|
||||||
for prop, parent_prop in declaration:
|
for prop, parent_prop in tuple(declaration):
|
||||||
if prop.name == self.property_name and self.property_matches(prop.value):
|
if prop.name == self.property_name and self.property_matches(prop.value):
|
||||||
if self.action == 'remove':
|
if self.action == 'remove':
|
||||||
declaration.remove_property(prop, parent_prop)
|
declaration.remove_property(prop, parent_prop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user