cvs: php-src /pear/PEAR/Frontend CLI.php
| From: | Stig Bakken | Date: | Sun, 15 Feb 2004 17:43:00 +0000 |
| Subject: | cvs: php-src /pear/PEAR/Frontend CLI.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-100@lists.php.net to get a copy of this message | ||
ssb Sun Feb 15 12:43:00 2004 EDT
Modified files:
/php-src/pear/PEAR/Frontend CLI.php
Log:
* don't cut lines when wrapping output
http://cvs.php.net/diff.php/php-src/pear/PEAR/Frontend/CLI.php?r1=1.39&r2=1.40&ty=u
Index: php-src/pear/PEAR/Frontend/CLI.php
diff -u php-src/pear/PEAR/Frontend/CLI.php:1.39 php-src/pear/PEAR/Frontend/CLI.php:1.40
--- php-src/pear/PEAR/Frontend/CLI.php:1.39 Thu Jan 8 12:33:13 2004
+++ php-src/pear/PEAR/Frontend/CLI.php Sun Feb 15 12:43:00 2004
@@ -16,7 +16,7 @@
| Author: Stig Sæther Bakken <ssb@php.net> |
+----------------------------------------------------------------------+
- $Id: CLI.php,v 1.39 2004/01/08 17:33:13 sniper Exp $
+ $Id: CLI.php,v 1.40 2004/02/15 17:43:00 ssb Exp $
*/
require_once "PEAR.php";
@@ -219,7 +219,7 @@
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 @@
$rowtext .= $cellstart . $cell . $cellend;
}
+ if (!$border) {
+ $rowtext = rtrim($rowtext);
+ }
$rowtext .= $rowend;
$this->_displayLine($rowtext);
}