def build_flowable(self): try: return rt.List([item.flowable() for item in self.list_item], style='bulleted') except AttributeError: # empty list return rt.DummyFlowable()
def build_flowable(self): # TODO: handle different numbering styles return rt.List([item.flowable() for item in self.list_item], style='enumerated')
def parse(self): return rt.List([item.process() for item in self.list_item], style='bulleted')
def parse(self): # TODO: handle different numbering styles return rt.List([item.process() for item in self.list_item], style='enumerated')
def parse(self, document): return rt.List([item.process(document) for item in self.list_item], style=self.style('bullet list'))
def parse(self, document): # TODO: handle different numbering styles return rt.List([item.process(document) for item in self.list_item], style=self.style('enumerated list'))