def block_separator_repl(self, _iter_content, stack, separator, hr_class=u'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)
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}))
def block_separator_repl(self, _iter_content, stack, separator): stack.clear() stack.top_append(moin_page.separator())
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))