Closed torohill closed 3 years ago
If there are newlines in the table data these cause the layout to break. For example:
$climate->table([ ['foo'=>"bar\nbar", 'baz'=>'foobaz'], ['foo'=>'bar', 'baz'=>'foobar'], ]); -------------------- | foo | baz | ==================== | bar bar | foobaz | -------------------- | bar | foobar | --------------------
What do you think about adding an option to format newlines so the table looks like this?
---------------- | foo | baz | ================ | bar | foobaz | | bar | | ---------------- | bar | foobar | ----------------
Sounds like a good idea (although rather than an option I'd expect that to just be standard behaviour), not sure how difficult/practical it will be though, will take a look in the next week
This is fixed in 3.6.0 thanks for the code!
If there are newlines in the table data these cause the layout to break. For example:
What do you think about adding an option to format newlines so the table looks like this?