From 66306dad2a64a1633f8200e4b3bd90d5df255cfa Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 6 May 2018 15:34:24 +0100 Subject: [PATCH] Change Hex byte rendering so it's always on a new line. --- volatility/cli/text_renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/cli/text_renderer.py b/volatility/cli/text_renderer.py index b98228168..da4279e69 100644 --- a/volatility/cli/text_renderer.py +++ b/volatility/cli/text_renderer.py @@ -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