diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-17 19:21:47 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-17 19:21:47 +0200 |
| commit | 991e879e1d2ed53125dbff4edba80804ff28f2a9 (patch) | |
| tree | 0917f83108feca10ca4207dd9089fe57cf8098d5 /src/lib.rs | |
| parent | 1987e5861cf2c033e3a540a5ef7c0f7106016929 (diff) | |
Extend stack layouts from vertical to horizontal flows ➡
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |
