示例#1
0
 def render_body(node):
     tags = {
         'bold': '*',
         'bold_close': '*',
         'italic': '_',
         'italic_close': '_'
     }
     node.value = apostrophes.parse('%s' % node.leaves(), tags)
示例#2
0
 def render_body(node):
     metadata = ''
     if external_links != []:
         metadata += '\nLinks:\n' + '\n'.join(external_links) + '\n'
     if category_links != []:
         metadata += '\nCategories:\n' + '\n'.join(category_links) + '\n'
     if interwiki_links != []:
         metadata += '\nInterwiki:\n' + '\n'.join(interwiki_links) + '\n'
     node.value = apostrophes.parse('%s' % node.leaves(), style_tags) + metadata
示例#3
0
 def render_body(node):
     metadata = ''
     if external_links != []:
         metadata += '\nLinks:\n' + '\n'.join(external_links) + '\n'
     if category_links != []:
         metadata += '\nCategories:\n' + '\n'.join(category_links) + '\n'
     if interwiki_links != []:
         metadata += '\nInterwiki:\n' + '\n'.join(interwiki_links) + '\n'
     node.value = apostrophes.parse('%s' % node.leaves(),
                                    style_tags) + metadata
示例#4
0
 def content(node):
     return apostrophes.parse('%s' % node.leaf(), style_tags)
示例#5
0
 def content(node):
     return apostrophes.parse('%s' % node.leaf(), style_tags)
示例#6
0
 def content(node):
     return apostrophes.parse('%s' % node.leaf() + balance_tags())
示例#7
0
 def render_body(node):
     tags = {'bold': '*', 'bold_close': '*', 'italic': '_', 'italic_close': '_'}
     print node
     node.value = apostrophes.parse(node.leaf(), tags)
示例#8
0
 def render_body(node):
     pass
     tags = {'bold': '', 'bold_close': '', 'italic': '', 'italic_close': ''}
     node.value = apostrophes.parse('%s' % node.leaves(), tags)
示例#9
0
 def content(node):
     return apostrophes.parse('%s' % node.leaf() + balance_tags())