center ASCII in over.core.misc.hexdump

This commit is contained in:
Martinez 2016-01-22 16:45:58 +01:00
parent b4e6d68277
commit 67f8840539

View file

@ -119,7 +119,7 @@ def hexdump(data, indent=0, offset=16, show_header=True, show_offsets=True, show
line.append('%2x' %(i)) line.append('%2x' %(i))
if show_ascii: if show_ascii:
line.append(' ASCII') line.append(' *{0}*'.format("ASCII".center(offset, "-")))
output_io.write(' '.join(line) + '\n') output_io.write(' '.join(line) + '\n')