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:
ikelos
2024-12-01 10:52:00 +00:00
committed by GitHub
+3 -1
View File
@@ -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