def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def poll(cls, context):
        userpref = context.user_preferences
        return (userpref.active_section == 'THEMES')