Change Hex byte rendering so it's always on a new line.

This commit is contained in:
Mike Auty
2018-05-06 15:34:24 +01:00
parent c38c6fa3c4
commit 66306dad2a
+1 -1
View File
@@ -29,10 +29,10 @@ def hex_bytes_as_text(value: bytes) -> str:
hex.append("{:02x}".format(byte))
ascii.append(chr(byte) if 0x20 < byte <= 0x7E else ".")
if (count % 8) == 7:
output += "\n"
output += " ".join(hex[count - 7: count])
output += "\t"
output += "".join(ascii[count - 7: count])
output += "\n"
count += 1
return output