Skip to content

Commit ba61c43

Browse files
committed
[#6296] Tweaks to explanation
1 parent 89bdbc6 commit ba61c43

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/console/helpers/table.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ You can add a table separator anywhere in the output by passing an instance of
6666
| 80-902734-1-6 | And Then There Were None | Agatha Christie |
6767
+---------------+--------------------------+------------------+
6868
69-
The width of the columns are automatically set using the width of their contents by default. You can change this behavior via :method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidths`::
69+
The width of the columns are automatically set using the width of their contents
70+
by default. You can control the minimum widths via :method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidths`::
7071

71-
// Sets the left column to 10 characters, the middle to 0, and the right to 30 characters.
72-
// The left two columns will effectively be 13 and 24 characters, as the columns' content don't fit within the set values.
72+
// the widths will expand to be bigger if necessary
73+
// here, the left two columns will be 13 & 24 characters to fit their content
7374
$table->setColumnWidths(array(10, 0, 30));
7475
$table->render();
7576

0 commit comments

Comments
 (0)