Skip to content

Commit

Permalink
Update description tag handling in xml
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Sep 7, 2023
1 parent 4197b3e commit 78c3180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/py_matter_idl/matter_idl/zapxml/handlers/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def GetNextProcessor(self, name: str, attrs):
self._event.readacl = AttrsToAccessPrivilege(attrs)
return BaseHandler(self.context, handled=HandledDepth.SINGLE_TAG)
elif name.lower() == 'description':
return DescriptionHandler(self.context, self._event)
return BaseHandler(self.context, handled=HandledDepth.SINGLE_TAG)
else:
return BaseHandler(self.context)

Expand Down Expand Up @@ -347,7 +347,7 @@ class DescriptionHandler(BaseHandler):
"""

def __init__(self, context: Context, target: Any):
super().__init__(context, handled=HandledDepth.ENTIRE_TREE)
super().__init__(context, handled=HandledDepth.SINGLE_TAG)
self.target = target

def HandleContent(self, content):
Expand Down

0 comments on commit 78c3180

Please sign in to comment.