reccmp: fixed typo

This commit is contained in:
itsmattkc 2023-06-27 16:01:49 -07:00
parent b080766321
commit 4a1e3a5b7e

View file

@ -372,7 +372,7 @@ def parse_asm(file, addr, size):
# If html, record the diffs to an HTML file # If html, record the diffs to an HTML file
if html: if html:
escaped = '\\n'.join(udiff).replace('"', '\\"').replace('\n', '\\n').replace('<', '&lt;').replace('>', '&gt;') escaped = '\\n'.join(udiff).replace('"', '\\"').replace('\n', '\\n').replace('<', '&lt;').replace('>', '&gt;')
htmlinsert.append('{address: "%s", name: "%s", matching: %s, diff: "%s"}' % (hex(addr), recinfo.name, str(ratio), escape)) htmlinsert.append('{address: "%s", name: "%s", matching: %s, diff: "%s"}' % (hex(addr), recinfo.name, str(ratio), escaped))
except UnicodeDecodeError: except UnicodeDecodeError:
break break