def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def exitMode(self, mode):
        if mode in self.modeList:
            self.modeList.remove(mode)