diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-06-04 11:30:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-04 15:30:43 +0000 |
| commit | df6e347bc55bdcbf370645442290198c0bcdd3fe (patch) | |
| tree | 7077226a019dcc51f65f1cc1716e577870441d7c /tests | |
| parent | 9adcd9a1f894b212e2757277781955a7d5b8bba8 (diff) | |
Align point and linebreak should not increase math row height (#4306)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-4187-alignment-point-affects-row-height.png | bin | 0 -> 282 bytes | |||
| -rw-r--r-- | tests/suite/math/equation.typ | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/ref/issue-4187-alignment-point-affects-row-height.png b/tests/ref/issue-4187-alignment-point-affects-row-height.png Binary files differnew file mode 100644 index 00000000..63a5768b --- /dev/null +++ b/tests/ref/issue-4187-alignment-point-affects-row-height.png 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 |
