def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def exitMode(self, mode):
        if mode in self.modeList:
            self.modeList.remove(mode)