Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.1

Bug #11064 Headers are wrongly sized
Submitted: 2007-05-17 04:37 UTC
From: doconnor Assigned: yunosh
Status: Closed Package: Console_Table (version 1.0.6)
PHP Version: 5.2.1 OS: windows
Roadmaps: (Not assigned)    
Subscription  


 [2007-05-17 04:37 UTC] doconnor (Daniel O'Connor)
Description: ------------ The wrong sized headers are output when you include line breaks in data Test script: --------------- <?php require_once 'Console/Table.php'; $table = new Console_Table(); $header = array('I am a one line header'); $data = array(); $data[] = array("But\nI\nAm\nMany\nLines"); $data[] = array("And I am not"); print $table->fromArray($header, $data); Expected result: ---------------- ---------- php ---------- +------------------------+ | I am a one line header | +------------------------+ | But | | I | | Am | | Many | | Lines | +------------------------+ | And I am not | +------------------------+ Output completed (0 sec consumed) - Normal Termination Actual result: -------------- ---------- php ---------- +------------------------+ | I am a one line header | | | | | | | | | +------------------------+ | But | | I | | Am | | Many | | Lines | +------------------------+ Output completed (0 sec consumed) - Normal Termination

Comments

 [2007-05-17 16:21 UTC] yunosh (Jan Schneider)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Console_Table