Skip to content

Commit

Permalink
* don't cut lines when wrapping output
Browse files Browse the repository at this point in the history
  • Loading branch information
stigsb committed Feb 15, 2004
1 parent b7329c8 commit 2fd0f86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pear/PEAR/Frontend/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function _tableRow($columns, $rowparams = array(), $colparams = array())
for ($i = 0; $i < sizeof($columns); $i++) {
$col = &$columns[$i];
if (isset($colparams[$i]) && !empty($colparams[$i]['wrap'])) {
$col = wordwrap($col, $colparams[$i]['wrap'], "\n", 1);
$col = wordwrap($col, $colparams[$i]['wrap'], "\n", 0);
}
if (strpos($col, "\n") !== false) {
$multiline = explode("\n", $col);
Expand Down Expand Up @@ -349,6 +349,9 @@ function _endTable()

$rowtext .= $cellstart . $cell . $cellend;
}
if (!$border) {
$rowtext = rtrim($rowtext);
}
$rowtext .= $rowend;
$this->_displayLine($rowtext);
}
Expand Down

0 comments on commit 2fd0f86

Please sign in to comment.