Commit 5c2b83fa by devttys0

Minor change to spacing in help output

parent 6ea3bc61
......@@ -141,7 +141,6 @@ class Display(object):
delim = '\n'
offset = 0
self.string_parts = []
libmagic_newline_delim = "\\012- "
# Split the line into an array of columns, e.g., ['0', '0x00000000', 'Some description here']
line_columns = line.split(None, self.num_columns-1)
......@@ -152,9 +151,6 @@ class Display(object):
# The delimiter will be a newline followed by spaces padding out the line wrap to the alignment offset.
delim += ' ' * offset
if libmagic_newline_delim in line:
line = line.replace(libmagic_newline_delim, delim)
if line_columns and self.fit_to_screen and len(line) > self.SCREEN_WIDTH:
# Calculate the maximum length that each wrapped line can be
max_line_wrap_length = self.SCREEN_WIDTH - offset
......
......@@ -646,7 +646,7 @@ class Modules(object):
else:
short_opt = " "
fmt = " %%s %%s%%-%ds%%s\n" % (32-len(long_opt))
fmt = " %%s %%s%%-%ds%%s\n" % (25-len(long_opt))
help_string += fmt % (short_opt, long_opt, optargs, module_option.description)
return help_string + "\n"
......
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