def format_sentence(sentence):
for index, word in enumerate(sentence):<EOL><INDENT>if word == '<STR_LIT:a>' and index + <NUM_LIT:1> < len(sentence) andre.match(r'<STR_LIT>', sentence[index + <NUM_LIT:1>]) and notre.match(r'<STR_LIT>', sentence[index + <NUM_LIT:1>]):<EOL><INDENT>sentence[index] = '<STR_LIT>'<EOL><DEDENT><DEDENT>text = '<STR_LIT:U+0020>'.join(sentence)<EOL>text = '<STR_LIT>' % (text[<NUM_LIT:0>].upper(), text[<NUM_LIT:1>:])<EOL>text = text.replace('<STR_LIT>', '<STR_LIT:U+002C>')<EOL>return '<STR_LIT>' % text<EOL>
fix display formatting of a sentence array