diff --git a/src/bootstraparse/modules/context_mngr.py b/src/bootstraparse/modules/context_mngr.py index f6fa3cd..9e81b51 100644 --- a/src/bootstraparse/modules/context_mngr.py +++ b/src/bootstraparse/modules/context_mngr.py @@ -46,7 +46,7 @@ class BaseContainer: return self.content[start:end] def __rshift__(self, other): - return self.map[other] + return self.map[other]() def __eq__(self, other): if len(self) != len(other): @@ -106,6 +106,20 @@ class BaseContainerWithOptionals(BaseContainer): rlist += [o] return rlist + # def all_html_insert(self): + # """ + # Returns a list of all html_inserts, and an empty list if none exist. + # :rtype: list + # """ + # return [o.content for o in self.fetch_html_insert()] + # + # def all_class_insert(self): + # """ + # Returns a list of all class_inserts, and an empty list if none exist. + # :rtype: list + # """ + # return [o.content for o in self.fetch_class_insert()] + # Define containers all the Enhanced text elements, divs, headers, list and any element that can be a container class TextContainer(BaseContainer):