cvs: php4 /pear/PEAR/Frontend CLI.php
| From: | Tomas V.V.Cox | Date: | Fri, 07 Jun 2002 14:48:02 +0000 |
| Subject: | cvs: php4 /pear/PEAR/Frontend CLI.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4481@lists.php.net to get a copy of this message | ||
cox Fri Jun 7 10:48:02 2002 EDT
Modified files:
/php4/pear/PEAR/Frontend CLI.php
Log:
more wrapping cases
Index: php4/pear/PEAR/Frontend/CLI.php
diff -u php4/pear/PEAR/Frontend/CLI.php:1.17 php4/pear/PEAR/Frontend/CLI.php:1.18
--- php4/pear/PEAR/Frontend/CLI.php:1.17 Thu Jun 6 06:16:01 2002
+++ php4/pear/PEAR/Frontend/CLI.php Fri Jun 7 10:48:01 2002
@@ -16,7 +16,7 @@
| Author: Stig Sæther Bakken <ssb@fast.no> |
+----------------------------------------------------------------------+
- $Id: CLI.php,v 1.17 2002/06/06 10:16:01 ssb Exp $
+ $Id: CLI.php,v 1.18 2002/06/07 14:48:01 cox Exp $
*/
require_once "PEAR.php";
@@ -409,13 +409,21 @@
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 @@
} else {
$this->_displayLine($data);
}
+ }
}
}