def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def exit_submission(self):
        "Close the submission and return to the subreddit page"

        self.active = False