center ASCII in over.core.misc.hexdump
This commit is contained in:
parent
b4e6d68277
commit
67f8840539
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue