mirror of https://github.com/docker/docs.git
Merge pull request #1693 from ekristen/remove_tty_wrap
Do not wrap table cells
This commit is contained in:
commit
6c7c63ce34
|
@ -7,7 +7,7 @@ import texttable
|
||||||
def get_tty_width():
|
def get_tty_width():
|
||||||
tty_size = os.popen('stty size', 'r').read().split()
|
tty_size = os.popen('stty size', 'r').read().split()
|
||||||
if len(tty_size) != 2:
|
if len(tty_size) != 2:
|
||||||
return 80
|
return 0
|
||||||
_, width = tty_size
|
_, width = tty_size
|
||||||
return int(width)
|
return int(width)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue