From 8eeb4ad8f6df3bedebdb86f95e013a9ea71fb687 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 19 Nov 2022 23:33:33 +0100 Subject: Rename `margins` to `margin` --- tests/src/tests.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/src') diff --git a/tests/src/tests.rs b/tests/src/tests.rs index aa9beaee..237eaf22 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -148,8 +148,7 @@ fn config() -> Config { let mut styles = typst_library::styles(); styles.set(PageNode::WIDTH, Smart::Custom(Abs::pt(120.0).into())); styles.set(PageNode::HEIGHT, Smart::Auto); - styles - .set(PageNode::MARGINS, Sides::splat(Some(Smart::Custom(Abs::pt(10.0).into())))); + styles.set(PageNode::MARGIN, Sides::splat(Some(Smart::Custom(Abs::pt(10.0).into())))); styles.set(TextNode::SIZE, TextSize(Abs::pt(10.0).into())); // Hook up helpers into the global scope. -- cgit v1.2.3