Commit c3911ed3 by devttys0

Fixed hexdiff header formatting bug

parent 085fd6fb
...@@ -34,7 +34,7 @@ class Entropy(Module): ...@@ -34,7 +34,7 @@ class Entropy(Module):
kwargs={'save_plot' : True}, kwargs={'save_plot' : True},
description='Save plot as a PNG'), description='Save plot as a PNG'),
Option(short='N', Option(short='N',
long='plot', long='nplot',
kwargs={'do_plot' : False}, kwargs={'do_plot' : False},
description='Do not generate an entropy plot graph'), description='Do not generate an entropy plot graph'),
Option(short='Q', Option(short='Q',
......
...@@ -193,7 +193,7 @@ class HexDiff(Module): ...@@ -193,7 +193,7 @@ class HexDiff(Module):
file_count = 1 file_count = 1
else: else:
file_count = len(self.hex_target_files) file_count = len(self.hex_target_files)
self.HEADER_FORMAT = "OFFSET " + ("%%-%ds " % header_width) * file_count self.HEADER_FORMAT = "OFFSET " + (("%%-%ds " % header_width) * file_count) + "\n"
# Build the header argument list # Build the header argument list
self.HEADER = [fp.name for fp in self.hex_target_files] self.HEADER = [fp.name for fp in self.hex_target_files]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment