def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def _get(delta, start):
            p = start
            while delta:
                p = p.next
                delta -= 1
            return p.val