summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/PEAR/Frontend/CLI.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php
index cc364979a3..1ecd223c1f 100644
--- a/pear/PEAR/Frontend/CLI.php
+++ b/pear/PEAR/Frontend/CLI.php
@@ -219,7 +219,7 @@ class PEAR_Frontend_CLI extends PEAR
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);
@@ -349,6 +349,9 @@ class PEAR_Frontend_CLI extends PEAR
$rowtext .= $cellstart . $cell . $cellend;
}
+ if (!$border) {
+ $rowtext = rtrim($rowtext);
+ }
$rowtext .= $rowend;
$this->_displayLine($rowtext);
}