'Find indented text and remove indent before further proccesing.
Keyword arguments:
* lines: an array of strings
Returns: a list of post processed items and the unused
remainder of the original list'

def detectTabbed(self, lines):

    items = []
    item = (-1)
    i = 0
    def detab(line):
        match = CORE_RE['tabbed'].match(line)
        if match:
            return match.group(4)
    for line in lines:
        if line.strip():
            line = detab(line)
            if line:
                items.append(line)
                i += 1
                continue
            else:
                return (items, lines[i:])
        else:
            i += 1
            for j in range(i, len(lines)):
                if lines[j].strip():
                    next_line = lines[j]
                    break
            else:
                break
            if detab(next_line):
                items.append('')
                continue
            else:
                break
    else:
        i += 1
    return (items, lines[i:])
