Ejemplo n.º 1
0
 def block_separator_repl(self, _iter_content, stack, separator, hr_class='moin-hr{0}'):
     stack.clear()
     hr_height = min((len(separator) - 3), 6)
     hr_height = max(hr_height, 1)
     attrib = {moin_page('class'): hr_class.format(hr_height)}
     elem = moin_page.separator(attrib=attrib)
     stack.top_append(elem)
Ejemplo n.º 2
0
 def block_separator_repl(self,
                          _iter_content,
                          stack,
                          separator,
                          hr_class=u'moin-hr3'):
     stack.clear()
     stack.top_append(
         moin_page.separator(attrib={moin_page.class_: hr_class}))
Ejemplo n.º 3
0
 def visit_transition(self, node, default_class=u'moin-hr3'):
     # TODO: add to rst_out
     attrib = {html.class_: default_class}
     self.open_moin_page_node(moin_page.separator(attrib=attrib))
Ejemplo n.º 4
0
 def block_separator_repl(self, _iter_content, stack, separator):
     stack.clear()
     stack.top_append(moin_page.separator())