Skip to content

Commit

Permalink
Merge pull request #15 from avirshup/fixwidth
Browse files Browse the repository at this point in the history
Fix line width for non-tty runs
  • Loading branch information
avirshup authored Apr 21, 2017
2 parents 2520f05 + b9bdb81 commit 555a0fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dockermake/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def human_readable_size(num, suffix='B'):

def stream_docker_logs(stream, name):
textwidth = get_console_width() - 5
if textwidth <= 2:
textwidth = 100
wrapper = textwrap.TextWrapper(initial_indent=' ',
subsequent_indent=' ',
break_on_hyphens=False,
Expand Down

0 comments on commit 555a0fe

Please sign in to comment.