From b9f8404d0aaa75eac1829053a3003d452c7e3ea5 Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Sat, 20 Apr 2024 00:52:24 +0800 Subject: [PATCH] Suppress "table-width-too-small" warning if table width is not set --- tabularray.sty | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tabularray.sty b/tabularray.sty index 710c585..8db12f5 100644 --- a/tabularray.sty +++ b/tabularray.sty @@ -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