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);
$rowtext .= $cellstart . $cell . $cellend;
}
+ if (!$border) {
+ $rowtext = rtrim($rowtext);
+ }
$rowtext .= $rowend;
$this->_displayLine($rowtext);
}