Commit 7b031069 authored by Fabio Pelosin's avatar Fabio Pelosin

[UI] Don't wrap if not being used thorough a TTY

parent dc60d21a
...@@ -260,7 +260,7 @@ module Pod ...@@ -260,7 +260,7 @@ module Pod
# terminal is too small a width of 80 is assumed. # terminal is too small a width of 80 is assumed.
# #
def wrap_string(txt, indent = '') def wrap_string(txt, indent = '')
if disable_wrap if disable_wrap || !STDIN.tty?
txt txt
else else
width = `stty size`.split(' ')[1].to_i - indent.length width = `stty size`.split(' ')[1].to_i - indent.length
......
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