summaryrefslogtreecommitdiff
path: root/macros/latex-dev/required/tools/array.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex-dev/required/tools/array.dtx')
-rw-r--r--macros/latex-dev/required/tools/array.dtx12
1 files changed, 9 insertions, 3 deletions
diff --git a/macros/latex-dev/required/tools/array.dtx b/macros/latex-dev/required/tools/array.dtx
index c9f77d77a3..4b163b5f18 100644
--- a/macros/latex-dev/required/tools/array.dtx
+++ b/macros/latex-dev/required/tools/array.dtx
@@ -33,7 +33,7 @@
%<+package>\DeclareCurrentRelease{}{2020-10-01}
%<+package>
%<+package>\ProvidesPackage{array}
-%<+package> [2022/03/10 v2.5f Tabular extension package (FMi)]
+%<+package> [2022/09/04 v2.5g Tabular extension package (FMi)]
%
% \fi
%
@@ -1727,14 +1727,20 @@
%
% For that reason the new implementation does the centering
% manually: First we check the height of the cell and if that is
-% less or equal to =\ht\@arstrutbox= we assume that this is a
+% less or equal to =\ht\strutbox= we assume that this is a
% single line cell. In that case we don't do any vertical maneuvre
% and simply output the box, i.e., make it behave like a single
% line p-cell.
+%
+% We use the height of \cs{strutbox} not \cs{@arstrutbox} in the comparison,
+% because \cs{box}\cs{ar@mcellbox} does not have any strut
+% incorporated and if \cs{arraystretch} is made very
+% small the test would otherwise incorrectly assume a multi-line cell.
% \changes{v2.4f}{2017/11/04}{Managing m-cells without \cs{vcenter}}
+% \changes{v2.5g}{2022/09/04}{Test against \cs{strutbox} height (gh/766)}
% \begin{macrocode}
\def\ar@align@mcell{%
- \ifdim \ht\ar@mcellbox > \ht\@arstrutbox
+ \ifdim \ht\ar@mcellbox > \ht\strutbox
% \end{macrocode}
% Otherwise we realign vertically by lowering the box. The question
% is how much do we need to move down? If there is any