fix over.misc.hexdump colors

This commit is contained in:
Martinez 2016-10-11 14:28:29 +02:00
parent 16770b209c
commit 26cc9c9c99
2 changed files with 5 additions and 5 deletions

View file

@ -153,14 +153,14 @@ def hexdump(data, indent=0, offset=16, show_header=True, show_offsets=True, show
elif i == len(data): elif i == len(data):
hex_bytes.extend([" "] * (offset - local_i)) hex_bytes.extend([" "] * (offset - local_i))
if use_colors: output_io.write(text.render("§B")) if use_colors: output_io.write(text.render("<W>"))
output_io.write(" ".join(hex_bytes)) output_io.write(" ".join(hex_bytes))
if use_colors: output_io.write(text.render("§/")) if use_colors: output_io.write(text.render("<.>"))
if show_ascii: if show_ascii:
output_io.write(text.render(" |§B") if use_colors else " |") output_io.write(text.render(" | <W>") if use_colors else " |")
output_io.write("".join(ascii_bytes)) output_io.write("".join(ascii_bytes))
output_io.write(text.render("§/|") if use_colors else "|") output_io.write(text.render("<.>|") if use_colors else "|")
output_io.write("\n") output_io.write("\n")

View file

@ -4,5 +4,5 @@
major = 1 # VERSION_MAJOR_IDENTIFIER major = 1 # VERSION_MAJOR_IDENTIFIER
minor = 99 # VERSION_MINOR_IDENTIFIER minor = 99 # VERSION_MINOR_IDENTIFIER
# VERSION_LAST_MM 1.99 # VERSION_LAST_MM 1.99
patch = 8 # VERSION_PATCH_IDENTIFIER patch = 9 # VERSION_PATCH_IDENTIFIER
str = ".".join(str(v) for v in (major, minor, patch)) str = ".".join(str(v) for v in (major, minor, patch))