def foreach_bracket():
    for node in NodeIterator():
        if (node.type == NodeType.BRACKET):
            delete_backward_blank(node)
            if _settings.get('bracket_split'):
                if (node.next and (node.next.type != NodeType.BRACKET)):
                    insert_blank_node(node.next)
        if (node.type == NodeType.REVERSE_BRACKET):
            delete_forward_blank(node)
            if _settings.get('bracket_split'):
                if (node.last and (node.last.type != NodeType.REVERSE_BRACKET)):
                    insert_blank_node(node)
            if (node.last and node.last.last and (node.last.type == NodeType.ENTER) and (node.last.last.type == NodeType.REVERSE_BRACKET)):
                delete_node(node.last)
def foreach_bracket():
    for node in NodeIterator():
        if (node.type == NodeType.BRACKET):
            delete_backward_blank(node)
            if _settings.get('bracket_split'):
                if (node.next and (node.next.type != NodeType.BRACKET)):
                    insert_blank_node(node.next)
        if (node.type == NodeType.REVERSE_BRACKET):
            delete_forward_blank(node)
            if _settings.get('bracket_split'):
                if (node.last and (node.last.type != NodeType.REVERSE_BRACKET)):
                    insert_blank_node(node)
            if (node.last and node.last.last and (node.last.type == NodeType.ENTER) and (node.last.last.type == NodeType.REVERSE_BRACKET)):
                delete_node(node.last)