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')
Exemplo n.º 3
0
 def parse(self):
     return rt.List([item.process() for item in self.list_item],
                    style='bulleted')
Exemplo n.º 4
0
 def parse(self):
     # TODO: handle different numbering styles
     return rt.List([item.process() for item in self.list_item],
                    style='enumerated')
Exemplo n.º 5
0
 def parse(self, document):
     return rt.List([item.process(document) for item in self.list_item],
                    style=self.style('bullet list'))
Exemplo n.º 6
0
 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'))