array("Description", $data['description']),
),
);
- default:
+ default: {
if (is_array($data))
{
$this->_startTable($data);
- $opts = array(0 => array('wrap' => 25),
- 1 => array('wrap' => 55)
- );
+ $count = count($data['data'][0]);
+ if ($count == 2) {
+ $opts = array(0 => array('wrap' => 25),
+ 1 => array('wrap' => 55)
+ );
+ } else {
+ $opts = array(0 => array('wrap' => 20),
+ 1 => array('wrap' => 20),
+ 2 => array('wrap' => 40)
+ );
+ }
if (isset($data['headline']) && is_array($data['headline'])) {
$this->_tableRow($data['headline'],
array('bold' => true),
} else {
$this->_displayLine($data);
}
+ }
}
}