def normed_indentation_pt(view, sel, non_space=False):

    tab_size = get_tab_size(view)
    pos = 0
    ln = view.line(sel)

    for pt in xrange(ln.begin(), ln.end() if non_space else sel.begin()):
        ch = view.substr(pt)

        if ch == '\t':
            pos += tab_size - (pos % tab_size)

        elif ch.isspace():
            pos += 1

        elif non_space:
            break
        else:
            pos+=1

    return pos
Method accept of bound field returns cleaned value
dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/Sublime Text 2/Default/indentation.py/normed_indentation_pt--crossover with--dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/fields.py/FieldTests.test_accept