Open
Description
I have set definitions to parse BBC for table as:
//table
$builder = new \JBBCode\CodeDefinitionBuilder('table', '<table><tbody>{param}</tbody></table>');
array_push($this->definitions, $builder->build());
//thead
$builder = new \JBBCode\CodeDefinitionBuilder('th', '<th>{param}</th>');
array_push($this->definitions, $builder->build());
//tr
$builder = new \JBBCode\CodeDefinitionBuilder('tr', '<tr>{param}</tr>');
array_push($this->definitions, $builder->build());
//td
$builder = new \JBBCode\CodeDefinitionBuilder('td', '<td>{param}</td>');
array_push($this->definitions, $builder->build());
It forks fine except it requires all BBC in a table to be in single line. If any part of table is split to new line, empty line will be inserted on top of rendered TABLE.
When dealing with tables it is necessary to split table to several lines and even make indentation for elements to make it readable.
Is there a way to clean all new lines and spaces outside of TR and TD tags within a TABLE?
Metadata
Metadata
Assignees
Labels
No labels