From 2fd0f86c739b3544704368bc2d46c17c45ee80d6 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sun, 15 Feb 2004 17:43:00 +0000 Subject: [PATCH] * don't cut lines when wrapping output --- pear/PEAR/Frontend/CLI.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.50.1