Skip to content

Commit

Permalink
Fix message for too wide table
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi committed Apr 19, 2024
1 parent 913756c commit dac5b4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tabularray.sty
Original file line number Diff line number Diff line change
Expand Up @@ -4034,15 +4034,15 @@
\prop_new:N \l__tblr_column_natural_width_prop
\prop_new:N \l__tblr_column_computed_width_prop
\msg_new:nnn { tabularray } { table-width-too-small }
{ Table ~ width ~ is ~ too ~ small, ~ need ~ #1 ~ more! }
\msg_new:nnn { tabularray } { table-too-wide }
{ Table ~ is ~ too ~ wide, ~ need ~ #1 ~ narrower! }
\cs_new_protected:Npn \__tblr_compute_extendable_column_width:
{
\__tblr_collect_extendable_column_width:
\dim_compare:nNnTF { \l__tblr_column_target_dim } < { 0pt }
{
\msg_warning:nnx { tabularray } { table-width-too-small }
\msg_warning:nnx { tabularray } { table-too-wide }
{ \dim_abs:n { \l__tblr_column_target_dim } }
}
{
Expand Down

0 comments on commit dac5b4b

Please sign in to comment.