def fix_text_escapes(self, txt: str, quote_char: str) -> str:
def _subf(matchobj):<EOL><INDENT>return matchobj.group(<NUM_LIT:0>).translate(self.re_trans_table)<EOL><DEDENT>if quote_char:<EOL><INDENT>txt = re.sub(r'<STR_LIT:\\>'+quote_char, quote_char, txt)<EOL><DEDENT>return re.sub(r'<STR_LIT>', _subf, txt, flags=re.MULTILINE + re.DOTALL + re.UNICODE)<EOL>
Fix the various text escapes