Exemplo n.º 1
0
 def parse(self):
     content = rt.StaticGroupedFlowables(
         [rt.Paragraph(rt.Bold('Tip')),
          super().parse()])
     return rt.Framed(content)
Exemplo n.º 2
0
 def flowable(self):
     return rt.Framed(super().flowable(), style='admonition')
Exemplo n.º 3
0
 def flowable(self):
     title_par = rt.Paragraph(self.title, style='title')
     content = rt.StaticGroupedFlowables([title_par, super().flowable()])
     framed = rt.Framed(content, style='admonition')
     framed.admonition_type = self.__class__.__name__.lower()
     return framed
Exemplo n.º 4
0
 def build_flowable(self):
     grouped_flowables = super().build_flowable()
     return rt.Framed(grouped_flowables, style='sidebar')