Skip to content

Commit 2fd0f86

Browse files
committed
* don't cut lines when wrapping output
1 parent b7329c8 commit 2fd0f86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pear/PEAR/Frontend/CLI.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function _tableRow($columns, $rowparams = array(), $colparams = array())
219219
for ($i = 0; $i < sizeof($columns); $i++) {
220220
$col = &$columns[$i];
221221
if (isset($colparams[$i]) && !empty($colparams[$i]['wrap'])) {
222-
$col = wordwrap($col, $colparams[$i]['wrap'], "\n", 1);
222+
$col = wordwrap($col, $colparams[$i]['wrap'], "\n", 0);
223223
}
224224
if (strpos($col, "\n") !== false) {
225225
$multiline = explode("\n", $col);
@@ -349,6 +349,9 @@ function _endTable()
349349

350350
$rowtext .= $cellstart . $cell . $cellend;
351351
}
352+
if (!$border) {
353+
$rowtext = rtrim($rowtext);
354+
}
352355
$rowtext .= $rowend;
353356
$this->_displayLine($rowtext);
354357
}

0 commit comments

Comments
 (0)