Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
5c2b83fa
Commit
5c2b83fa
authored
Jan 19, 2015
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to spacing in help output
parent
6ea3bc61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
+1
-5
display.py
src/binwalk/core/display.py
+0
-4
module.py
src/binwalk/core/module.py
+1
-1
No files found.
src/binwalk/core/display.py
View file @
5c2b83fa
...
...
@@ -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
...
...
src/binwalk/core/module.py
View file @
5c2b83fa
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment