summaryrefslogtreecommitdiff
path: root/library/src/math/op.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-02 16:47:10 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-02 16:47:10 +0100
commite9ff2d6463bf26cb0bbafb747bf8a77800687e3f (patch)
tree810d28ba35557acacf987d08c2000e2e643cbe4e /library/src/math/op.rs
parente6400861ab5c4d7ab437901b2334e5822c2693a5 (diff)
More robust automatic math spacing
Diffstat (limited to 'library/src/math/op.rs')
-rw-r--r--library/src/math/op.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/math/op.rs b/library/src/math/op.rs
index 6e52cea5..8cc007ea 100644
--- a/library/src/math/op.rs
+++ b/library/src/math/op.rs
@@ -38,9 +38,9 @@ impl OpNode {
impl LayoutMath for OpNode {
fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> {
- let frame = ctx.layout_non_math(&TextNode(self.text.clone()).pack())?;
+ let frame = ctx.layout_content(&TextNode(self.text.clone()).pack())?;
ctx.push(
- FrameFragment::new(frame)
+ FrameFragment::new(ctx, frame)
.with_class(MathClass::Large)
.with_limits(self.limits),
);