From 3284e7fac7c695e42fd2c666befd92742cac96be Mon Sep 17 00:00:00 2001 From: Luis David Licea Torres Date: Mon, 12 Jun 2023 04:46:34 -0600 Subject: Support for inside and outside margins (#1308) Co-authored-by: Laurenz --- tests/src/tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/src') diff --git a/tests/src/tests.rs b/tests/src/tests.rs index debb3c92..34070e9c 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -24,11 +24,11 @@ use typst::diag::{bail, FileError, FileResult, StrResult}; use typst::doc::{Document, Frame, FrameItem, Meta}; use typst::eval::{func, Datetime, Library, NoneValue, Value}; use typst::font::{Font, FontBook}; -use typst::geom::{Abs, Color, RgbaColor, Sides, Smart}; +use typst::geom::{Abs, Color, RgbaColor, Smart}; use typst::syntax::{Source, SourceId, Span, SyntaxNode}; use typst::util::{Buffer, PathExt}; use typst::World; -use typst_library::layout::PageElem; +use typst_library::layout::{Margin, PageElem}; use typst_library::text::{TextElem, TextSize}; const TYP_DIR: &str = "typ"; @@ -177,7 +177,7 @@ fn library() -> Library { lib.styles .set(PageElem::set_width(Smart::Custom(Abs::pt(120.0).into()))); lib.styles.set(PageElem::set_height(Smart::Auto)); - lib.styles.set(PageElem::set_margin(Sides::splat(Some(Smart::Custom( + lib.styles.set(PageElem::set_margin(Margin::splat(Some(Smart::Custom( Abs::pt(10.0).into(), ))))); lib.styles.set(TextElem::set_size(TextSize(Abs::pt(10.0).into()))); -- cgit v1.2.3