Skip to content

Commit

Permalink
[Console] Fix compact table style to avoid outputting a leading space
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Mar 16, 2022
1 parent 5a50085 commit 74236fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Helper/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,9 +804,9 @@ private static function initStyles(): array
$compact = new TableStyle();
$compact
->setHorizontalBorderChars('')
->setVerticalBorderChars(' ')
->setVerticalBorderChars('')
->setDefaultCrossingChar('')
->setCellRowContentFormat('%s')
->setCellRowContentFormat('%s ')
;

$styleGuide = new TableStyle();
Expand Down
10 changes: 5 additions & 5 deletions Tests/Helper/TableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ public function renderProvider()
$books,
'compact',
<<<'TABLE'
ISBN Title Author
99921-58-10-7 Divine Comedy Dante Alighieri
9971-5-0210-0 A Tale of Two Cities Charles Dickens
960-425-059-0 The Lord of the Rings J. R. R. Tolkien
80-902734-1-6 And Then There Were None Agatha Christie
ISBN Title Author
99921-58-10-7 Divine Comedy Dante Alighieri
9971-5-0210-0 A Tale of Two Cities Charles Dickens
960-425-059-0 The Lord of the Rings J. R. R. Tolkien
80-902734-1-6 And Then There Were None Agatha Christie
TABLE
],
Expand Down

0 comments on commit 74236fc

Please sign in to comment.