mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 19:27:39 +02:00
Merge pull request #1376 from gcmoreira/fix_pretty_renderer_hex_bytes_as_text
Renderers - Fix HexBytes formatter for pretty renderer
This commit is contained in:
@@ -51,8 +51,10 @@ def hex_bytes_as_text(value: bytes, width: int = 16) -> str:
|
||||
|
||||
# Handle leftovers when the lenght is not mutiple of width
|
||||
if printables:
|
||||
output += " " * (width - len(printables))
|
||||
padding = width - len(printables)
|
||||
output += " " * (padding)
|
||||
output += printables
|
||||
output += " " * (padding)
|
||||
|
||||
return output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user