def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def is_dirty(self):
        return any(context['dirty'] for context in self)