From df6e347bc55bdcbf370645442290198c0bcdd3fe Mon Sep 17 00:00:00 2001 From: Leedehai <18319900+Leedehai@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:30:43 -0400 Subject: Align point and linebreak should not increase math row height (#4306) --- .../ref/issue-4187-alignment-point-affects-row-height.png | Bin 0 -> 282 bytes tests/suite/math/equation.typ | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/ref/issue-4187-alignment-point-affects-row-height.png (limited to 'tests') diff --git a/tests/ref/issue-4187-alignment-point-affects-row-height.png b/tests/ref/issue-4187-alignment-point-affects-row-height.png new file mode 100644 index 00000000..63a5768b Binary files /dev/null and b/tests/ref/issue-4187-alignment-point-affects-row-height.png differ diff --git a/tests/suite/math/equation.typ b/tests/suite/math/equation.typ index e7ae677e..2345de54 100644 --- a/tests/suite/math/equation.typ +++ b/tests/suite/math/equation.typ @@ -256,6 +256,16 @@ $ q &= sum_k ln A \ ], ) +--- issue-4187-alignment-point-affects-row-height --- +// In this bug, a row of "-" only should have a very small height; but +// after adding an alignment point "&", the row gains a larger height. +// We need to test alignment point "&" does not affect a row's height. +#box($ - - $, fill: silver) +#box($ - - $, fill: silver) \ +#box($ a \ - - $, fill: silver) +#box($ &- - \ &a $, fill: silver) +#box($ &a \ &- - $, fill: silver) + --- issue-numbering-hint --- // In this bug, the hint and error messages for an equation // being reference mentioned that it was a "heading" and was -- cgit v1.2.3