From 991e879e1d2ed53125dbff4edba80804ff28f2a9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 17 Oct 2019 19:21:47 +0200 Subject: =?UTF-8?q?Extend=20stack=20layouts=20from=20vertical=20to=20horiz?= =?UTF-8?q?ontal=20flows=20=E2=9E=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index c01e5d7e..0b559be9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,7 +21,7 @@ use toddle::query::{FontLoader, FontProvider, SharedFontLoader}; use crate::func::Scope; use crate::layout::{layout_tree, LayoutContext, MultiLayout}; -use crate::layout::{Alignment, LayoutError, LayoutResult, LayoutSpace}; +use crate::layout::{Alignment, Flow, LayoutError, LayoutResult, LayoutSpace}; use crate::parsing::{parse, ParseContext, ParseError, ParseResult}; use crate::style::{PageStyle, TextStyle}; use crate::syntax::SyntaxTree; @@ -105,6 +105,7 @@ impl<'p> Typesetter<'p> { loader: &self.loader, style: &self.text_style, alignment: Alignment::Left, + flow: Flow::Vertical, space, followup_spaces: Some(space), shrink_to_fit: false, -- cgit v1.2.3