From ff107cf3e75acf041f8b7631337d299cdeaa1685 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 12 Dec 2019 22:19:38 +0100 Subject: =?UTF-8?q?Tidying=20up=20=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 5b5e3b0c..8e5d1441 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,11 +8,13 @@ //! - **Layouting:** The next step is to transform the syntax tree into a //! portable representation of the typesetted document. Types for these can be //! found in the [layout] module. A finished layout reading for exporting is a -//! [multi layout](crate::layout::MultiLayout) consisting of multiple boxes (or -//! pages). -//! - **Exporting:** The finished document can finally be exported into a supported -//! format. Submodules for these formats are located in the [export](crate::export) -//! module. Currently, the only supported output format is _PDF_. +//! [multi-layout](crate::layout::MultiLayout) consisting of multiple boxes +//! (or pages). +//! - **Exporting:** The finished layout can then be exported into a supported +//! format. Submodules for these formats are located in the +//! [export](crate::export) module. Currently, the only supported output +//! format is _PDF_. Alternatively, the layout can be serialized to pass it to +//! a suitable renderer. #![allow(unused)] @@ -25,9 +27,8 @@ use toddle::query::{FontLoader, FontProvider, SharedFontLoader}; use toddle::Error as FontError; use crate::func::Scope; -use crate::layout::{layout_tree, MultiLayout, LayoutContext}; -use crate::layout::{LayoutAxes, LayoutAlignment}; -use crate::layout::{LayoutResult, LayoutSpace, LayoutExpansion}; +use crate::layout::{layout_tree, MultiLayout, LayoutContext, LayoutResult}; +use crate::layout::{LayoutSpace, LayoutExpansion, LayoutAxes, LayoutAlignment}; use crate::syntax::{parse, SyntaxTree, ParseContext, Span, ParseResult}; use crate::style::{LayoutStyle, PageStyle, TextStyle}; @@ -38,9 +39,9 @@ pub mod export; pub mod func; pub mod layout; pub mod library; +pub mod syntax; pub mod size; pub mod style; -pub mod syntax; /// Transforms source code into typesetted layouts. /// -- cgit v1.2.3