def main(self):
self.manage_submissions()<EOL>out_string = self.options['<STR_LIT>']<EOL>length = float('<STR_LIT>')<EOL>while length > self.options['<STR_LIT>']:<EOL><INDENT>self.selected_submission = self.submissions.pop()<EOL>length = len(self.selected_submission['<STR_LIT:title>'])<EOL><DEDENT>for k, v in self.selected_submission.items():<EOL><INDENT>out_string = out_string.replace(k, self.h.unescape(str(v)))<EOL><DEDENT>return self.output(out_string, out_string)<EOL>
Generates an output string by replacing the keywords in the format
string with the corresponding values from a submission dictionary.