Skip to content

Commit 7d4142b

Browse files
committed
* disable table borders in output to save width
1 parent 360d1da commit 7d4142b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pear/PEAR/Frontend/CLI.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function _tableRow($columns, $rowparams = array(), $colparams = array())
254254

255255
function endTable()
256256
{
257-
trigger_error("PEAR_Frontend_CLI::tableRow deprecated", E_USER_ERROR);
257+
trigger_error("PEAR_Frontend_CLI::endTable deprecated", E_USER_ERROR);
258258
}
259259

260260
function _endTable()
@@ -275,6 +275,7 @@ function _endTable()
275275
}
276276
}
277277
}
278+
$border = false;
278279
if (empty($border)) {
279280
$cellstart = '';
280281
$cellend = ' ';
@@ -358,7 +359,7 @@ function outputData($data, $command = '_default')
358359
if (isset($data['release_warnings'])) {
359360
$this->_displayLine('');
360361
$this->_startTable(array(
361-
'border' => true,
362+
'border' => false,
362363
'caption' => 'Release Warnings'
363364
));
364365
$this->_tableRow(array($data['release_warnings']), null, array(1 => array('wrap' => 55)));
@@ -394,7 +395,7 @@ function outputData($data, $command = '_default')
394395
$this->_endTable();
395396
break;
396397
case 'config-show':
397-
$data['border'] = true;
398+
$data['border'] = false;
398399
$opts = array(0 => array('wrap' => 30),
399400
1 => array('wrap' => 20),
400401
2 => array('wrap' => 35));
@@ -417,7 +418,7 @@ function outputData($data, $command = '_default')
417418
case 'remote-info':
418419
$data = array(
419420
'caption' => 'Package details:',
420-
'border' => true,
421+
'border' => false,
421422
'data' => array(
422423
array("Latest", $data['stable']),
423424
array("Installed", $data['installed']),

0 commit comments

Comments
 (0)