minor hexdump UI fix

This commit is contained in:
Martin Sekera 2020-03-09 07:42:49 +01:00
parent 0f1d72149e
commit ca06e2438a
2 changed files with 4 additions and 4 deletions

View file

@ -181,7 +181,7 @@ def hexdump(data, indent=0, width=16, show_header=True, show_offsets=True, show_
skip_cnt += 1 skip_cnt += 1
else: else:
if skip_cnt: if skip_cnt:
output_io.write("(skipped %d lines, %d B)\n" %(skip_cnt, skip_cnt * width)) output_io.write("%s > skipping %d identical lines, %d B\n" %(" "*offset_figures, skip_cnt, skip_cnt * width))
skip_cnt = 0 skip_cnt = 0
@ -208,7 +208,7 @@ def hexdump(data, indent=0, width=16, show_header=True, show_offsets=True, show_
output_io.write("\n") output_io.write("\n")
if skip_cnt: if skip_cnt:
output_io.write("(skipped %d lines, %d B)\n" %(skip_cnt, skip_cnt * width)) output_io.write("%s > skipping %d identical lines, %d B\n" %(" "*offset_figures, skip_cnt, skip_cnt * width))
if not output: if not output:
output_io.seek(0) output_io.seek(0)

View file

@ -4,5 +4,5 @@
major = 2 # VERSION_MAJOR_IDENTIFIER major = 2 # VERSION_MAJOR_IDENTIFIER
minor = 1 # VERSION_MINOR_IDENTIFIER minor = 1 # VERSION_MINOR_IDENTIFIER
# VERSION_LAST_MM 2.1 # VERSION_LAST_MM 2.1
patch = 6 # VERSION_PATCH_IDENTIFIER patch = 7 # VERSION_PATCH_IDENTIFIER
str = "2.1.6" # VERSION_STRING_IDENTIFIER str = "2.1.7" # VERSION_STRING_IDENTIFIER