1.1 --- a/moinformat/utils/htmlparse/tree.py Thu Aug 17 22:50:30 2023 +0200
1.2 +++ b/moinformat/utils/htmlparse/tree.py Thu Aug 17 23:33:18 2023 +0200
1.3 @@ -30,7 +30,7 @@
1.4 return "%s(%r, %r)" % (self.__class__.__name__, self.name, self.value)
1.5
1.6 def visit(self, visitor):
1.7 - visitor.attribute(self)
1.8 + return visitor.attribute(self)
1.9
1.10
1.11
1.12 @@ -44,7 +44,7 @@
1.13 return "%s(%r)" % (self.__class__.__name__, self.nodes)
1.14
1.15 def visit(self, visitor):
1.16 - visitor.fragment(self)
1.17 + return visitor.fragment(self)
1.18
1.19 class Element(Fragment):
1.20 def __init__(self, name, attributes=None, nodes=None):
1.21 @@ -56,7 +56,7 @@
1.22 return "%s(%r, %r, %r)" % (self.__class__.__name__, self.name, self.attributes, self.nodes)
1.23
1.24 def visit(self, visitor):
1.25 - visitor.element(self)
1.26 + return visitor.element(self)
1.27
1.28
1.29
1.30 @@ -70,7 +70,7 @@
1.31 return "%s(%r)" % (self.__class__.__name__, self.value)
1.32
1.33 def visit(self, visitor):
1.34 - visitor.node(self)
1.35 + return visitor.node(self)
1.36
1.37 class AttributeValue(Node):
1.38 def __init__(self, value, quote):
1.39 @@ -81,22 +81,22 @@
1.40 return "%s(%r, %r)" % (self.__class__.__name__, self.value, self.quote)
1.41
1.42 def visit(self, visitor):
1.43 - visitor.attribute_value(self)
1.44 + return visitor.attribute_value(self)
1.45
1.46 class Comment(Node):
1.47 def visit(self, visitor):
1.48 - visitor.comment(self)
1.49 + return visitor.comment(self)
1.50
1.51 class Directive(Node):
1.52 def visit(self, visitor):
1.53 - visitor.directive(self)
1.54 + return visitor.directive(self)
1.55
1.56 class Inclusion(Node):
1.57 def visit(self, visitor):
1.58 - visitor.inclusion(self)
1.59 + return visitor.inclusion(self)
1.60
1.61 class Text(Node):
1.62 def visit(self, visitor):
1.63 - visitor.text(self)
1.64 + return visitor.text(self)
1.65
1.66 # vim: tabstop=4 expandtab shiftwidth=4