Skip to content

Commit

Permalink
Suppress "table-width-too-small" warning if table width is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi committed Apr 19, 2024
1 parent 913756c commit b9f8404
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tabularray.sty
Original file line number Diff line number Diff line change
Expand Up @@ -4042,8 +4042,11 @@
\__tblr_collect_extendable_column_width:
\dim_compare:nNnTF { \l__tblr_column_target_dim } < { 0pt }
{
\msg_warning:nnx { tabularray } { table-width-too-small }
{ \dim_abs:n { \l__tblr_column_target_dim } }
\tl_if_empty:eF { \__tblr_prop_item:nn { inner } { width } }
{
\msg_warning:nnx { tabularray } { table-width-too-small }
{ \dim_abs:n { \l__tblr_column_target_dim } }
}
}
{
\prop_if_empty:NF \l__tblr_column_coefficient_prop
Expand Down

0 comments on commit b9f8404

Please sign in to comment.