Skip to content

Commit

Permalink
simplify \l__tblr_measured_cell_box (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjr committed Dec 1, 2024
1 parent 7c76658 commit 8eaa415
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tabularray.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3775,6 +3775,8 @@
\end{varwidth}
}
\tl_set:Nx \l__tblr_w_tl { \dim_eval:n { \box_wd:N \l__tblr_measured_cell_box } }
\vbox_set:Nn \l__tblr_measured_cell_box
{ \box_use:N \l__tblr_measured_cell_box }
}
%% Measure cell width only and build it later when hook library is not loaded
Expand Down Expand Up @@ -3837,14 +3839,7 @@
\group_begin:
\box_if_empty:NTF \l__tblr_measured_cell_box
{ \vbox_set:Nn \l_tmpb_box { \__tblr_make_vcell_text:NN #1 #2 } }
{
\vbox_set:Nn \l_tmpb_box
{
\dim_set:Nn \tex_hsize:D { \l__tblr_w_tl }
\noindent
\hbox_unpack_drop:N \l__tblr_measured_cell_box
}
}
{ \box_set_eq:NN \l_tmpb_box \l__tblr_measured_cell_box }
\vbox_set_top:Nn \l_tmpa_box { \vbox_unpack:N \l_tmpb_box }
\__tblr_process_stretch:
\dim_gset:Nn \g__tblr_cell_wd_dim { \box_wd:N \l_tmpb_box }
Expand Down

0 comments on commit 8eaa415

Please sign in to comment.