Changeset 0528d7a6149dc3fdd32ddb34744a51adb1ef6e8b


Ignore:
Timestamp:
26.07.2013 01:39:20 (8 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0
Children:
f6295f4c7c61385226e21286d79867b630ff494c
Parents:
747130481b97dbf8a57cd343e69f1cc180cfdc58
git-author:
Stanislaw Klekot <dozzie@…> (26.07.2013 01:39:20)
git-committer:
Stanislaw Klekot <dozzie@…> (26.07.2013 01:39:20)
Message:

Added skipping indent and list markers in AST cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/markup/_tree_utils.py

    r747130 r0528d7  
    1515 
    1616  # stuff to ignore 
    17   if name == 'COMMENT': 
     17  if name in ['COMMENT', 'BEGIN_INDENT', 'END_INDENT']: 
     18    return '' 
     19 
     20  # itemization markers (*_list_element took this function) 
     21  if name in ['LIST_NUMERIC', 'LIST_BULLET', 'LIST_ALPHA']: 
    1822    return '' 
    1923 
     
    8286    # chomp elements 0 and -1 
    8387    value = tree[name] = value[1:-1] 
     88 
     89  # TODO: add chomping the last space from nodes 
     90  # {bullet,alpha,numbered}_list_element (there's always one from NL 
     91  # character) 
    8492 
    8593  if name == 'link': 
Note: See TracChangeset for help on using the changeset viewer.