Skip to content

Commit f3d7fcb

Browse files
committed
Add center alignment support to table columns and boxes
The implementation in LineComposer already handles center alignment for embedded mode (tables/boxes), but the documentation only listed left and right as valid options. Update docs to include center. Extracted from PR #56. https://claude.ai/code/session_01D7JHMJTJhD4TNqqhrwS3Qr
1 parent b707958 commit f3d7fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ The first parameter is an array of column definitions. Each column can have the
402402

403403
- `width`: determines the width of the column.
404404
- `marginLeft` and `marginRight`: set a margin to the left and right of the column.
405-
- `align`: sets the horizontal alignment of the text in the column and can either be `left` or `right`.
405+
- `align`: sets the horizontal alignment of the text in the column and can be `left`, `center` or `right`.
406406
- `verticalAlign`: sets the vertical alignment of the text in the column and can either be `top` or `bottom`.
407407

408408
The second parameter contains the data and is an array that contains each row. There can be as many rows as you would like.
@@ -447,7 +447,7 @@ The first parameter is an object with additional configuration options.
447447
- `marginRight`: Space between the right border and the right edge
448448
- `paddingLeft`: Space between the contents and the left border of the box
449449
- `paddingRight`: Space between the contents and the right border of the box
450-
- `align`: The alignment of the text within the box, can be `left` or `right`.
450+
- `align`: The alignment of the text within the box, can be `left`, `center` or `right`.
451451

452452
The second parameter is the content of the box and it can be a string, or a callback function.
453453

0 commit comments

Comments
 (0)