pretty-hex
pretty-hex copied to clipboard
Do not print "0 bytes not shown"
If max_bytes limit is exactly the size of the input, I get the following output:
00d0: 1011 1213 1415 0000 0000 0000 0000 0001 ................
00e0: 0001 0203 0405 0607 0000 0000 0000 0000 ................
00f0: 1011 1213 1415 0000 0000 0000 0000 0001 ................
...0 (0x0) bytes not shown...
This is fixed.
Also, spaces are inserted around the ellipsis.