def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def bufferedMode(self, mode = True):
        if mode is None:
            self.flush()
        self._bufferedMode = mode