Changeset 7de75b6fee3b7f7371d0258f9d3fa1e1a656e1e3


Ignore:
Timestamp:
27.07.2013 23:55:00 (8 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0
Children:
347742d7106d1233d1b0027ec0abbd60a0d4ee79
Parents:
1ace2b5bf0aee3f7c7c8f482ccf2a8c7c0bae824
git-author:
Stanislaw Klekot <dozzie@…> (27.07.2013 23:55:00)
git-committer:
Stanislaw Klekot <dozzie@…> (27.07.2013 23:55:00)
Message:

Added support for formatting tables to dashmarkup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/markup/templatetags/dashmarkup.py

    r2cb0ba r7de75b  
    6060# general rules for formatting {{{ 
    6161 
     62# separators for joining children of following nodes 
    6263_separator = { 
    6364  'document':       '\n\n', 
     
    6667} 
    6768 
     69# formatting of following nodes 
    6870_wrap = { 
    6971  'text_paragraph':     '<p>\n%(html)s\n</p>', 
     
    7779  'alpha_list':         '<ol class="alpha_list">\n%(html)s\n</ol>', 
    7880  'list_item':          '<li>%(html)s</li>', 
     81  'table_paragraph':    '<table>\n%(html)s</table>', 
     82  'table_row':          '  <tr>%(html)s</tr>\n', 
     83  'table_cell':         '<td>%(html)s</td>', 
    7984} 
    8085 
     86# special formatting that doesn't fit into join()-and-wrap model 
    8187_special = { 
    8288  'link':  format_link, 
Note: See TracChangeset for help on using the changeset viewer.