diff options
author | Tomas V.V.Cox <cox@php.net> | 2002-06-07 14:48:01 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2002-06-07 14:48:01 +0000 |
commit | 8f21117efb08c073561332fc26c0ac7d22ef1e06 (patch) | |
tree | da8587c4c54f5dbf16318ba0fefaf96f5e9329c2 | |
parent | 41e31645dd84da76e5e81b6027c45e76bdfcbac2 (diff) | |
download | php-git-8f21117efb08c073561332fc26c0ac7d22ef1e06.tar.gz |
more wrapping cases
-rw-r--r-- | pear/PEAR/Frontend/CLI.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php index 0c352e45ae..e9c4cc9eab 100644 --- a/pear/PEAR/Frontend/CLI.php +++ b/pear/PEAR/Frontend/CLI.php @@ -409,13 +409,21 @@ class PEAR_Frontend_CLI extends PEAR array("Description", $data['description']), ), ); - default: + default: { if (is_array($data)) { $this->_startTable($data); - $opts = array(0 => array('wrap' => 25), - 1 => array('wrap' => 55) - ); + $count = count($data['data'][0]); + if ($count == 2) { + $opts = array(0 => array('wrap' => 25), + 1 => array('wrap' => 55) + ); + } else { + $opts = array(0 => array('wrap' => 20), + 1 => array('wrap' => 20), + 2 => array('wrap' => 40) + ); + } if (isset($data['headline']) && is_array($data['headline'])) { $this->_tableRow($data['headline'], array('bold' => true), @@ -428,6 +436,7 @@ class PEAR_Frontend_CLI extends PEAR } else { $this->_displayLine($data); } + } } } |