summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2004-02-15 17:43:00 +0000
committerStig Bakken <ssb@php.net>2004-02-15 17:43:00 +0000
commit2fd0f86c739b3544704368bc2d46c17c45ee80d6 (patch)
tree666348630db599b8e0281aa8516bbec999a05d33
parentb7329c845698a59eb456648f0b48ad78011e36a8 (diff)
downloadphp-git-2fd0f86c739b3544704368bc2d46c17c45ee80d6.tar.gz
* don't cut lines when wrapping output
-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);
}