]> granicus.if.org Git - php/commitdiff
* disable table borders in output to save width
authorStig Bakken <ssb@php.net>
Thu, 3 Apr 2003 23:12:40 +0000 (23:12 +0000)
committerStig Bakken <ssb@php.net>
Thu, 3 Apr 2003 23:12:40 +0000 (23:12 +0000)
pear/PEAR/Frontend/CLI.php

index da958b842cd8196925d11dab24bf4559e2289852..ba30702813dc64f46245385c031b518172f11aea 100644 (file)
@@ -254,7 +254,7 @@ class PEAR_Frontend_CLI extends PEAR
 
     function endTable()
     {
-        trigger_error("PEAR_Frontend_CLI::tableRow deprecated", E_USER_ERROR);
+        trigger_error("PEAR_Frontend_CLI::endTable deprecated", E_USER_ERROR);
     }
 
     function _endTable()
@@ -275,6 +275,7 @@ class PEAR_Frontend_CLI extends PEAR
                 }
             }
         }
+        $border = false;
         if (empty($border)) {
             $cellstart = '';
             $cellend = ' ';
@@ -358,7 +359,7 @@ class PEAR_Frontend_CLI extends PEAR
                 if (isset($data['release_warnings'])) {
                     $this->_displayLine('');
                     $this->_startTable(array(
-                        'border' => true,
+                        'border' => false,
                         'caption' => 'Release Warnings'
                         ));
                     $this->_tableRow(array($data['release_warnings']), null, array(1 => array('wrap' => 55)));
@@ -394,7 +395,7 @@ class PEAR_Frontend_CLI extends PEAR
                 $this->_endTable();
                 break;
             case 'config-show':
-                $data['border'] = true;
+                $data['border'] = false;
                 $opts = array(0 => array('wrap' => 30),
                               1 => array('wrap' => 20),
                               2 => array('wrap' => 35));
@@ -417,7 +418,7 @@ class PEAR_Frontend_CLI extends PEAR
             case 'remote-info':
                 $data = array(
                     'caption' => 'Package details:',
-                    'border' => true,
+                    'border' => false,
                     'data' => array(
                         array("Latest",    $data['stable']),
                         array("Installed", $data['installed']),