From 56342bd972a13ffe21beaf2b87ab7eb1597704b4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 2 Nov 2022 14:48:51 +0100 Subject: Move layout traits into library --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index caba9707..051a58f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ //! structure, layouts, etc. of the module. The nodes of the content tree are //! well structured and order-independent and thus much better suited for //! layouting than the raw markup. -//! - **Layouting:** Next, the content is [layouted] into a portable version of +//! - **Layouting:** Next, the content is layouted into a portable version of //! the typeset document. The output of this is a collection of [`Frame`]s //! (one per page), ready for exporting. //! - **Exporting:** The finished layout can be exported into a supported @@ -24,7 +24,6 @@ //! [evaluate]: model::eval //! [module]: model::Module //! [content]: model::Content -//! [layouted]: model::layout //! [PDF]: export::pdf #![allow(clippy::len_without_is_empty)] @@ -69,7 +68,7 @@ pub fn typeset( ) -> SourceResult> { let route = Route::default(); let module = model::eval(world.track(), route.track(), main)?; - model::layout(world.track(), &module.content) + library::layout::Layout::layout(&module.content, world.track()) } /// The environment in which typesetting occurs. -- cgit v1.2.3