def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def is_dirty(self, dbs):
        return any(self[db].is_dirty() for db in dbs)