diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-16 22:32:40 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-16 22:32:40 +0200 |
| commit | e87a34a4d0bf967427e2443f9f48026d09ccd5db (patch) | |
| tree | d1163980613526f9b211c710a9bb52b2893f0839 /src/lib.rs | |
| parent | 58693486f97ddbb34595efa1a81a4e7b1d3204c9 (diff) | |
Rearrange layouting contexts ♻
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -96,8 +96,6 @@ impl<'p> Typesetter<'p> { let space = LayoutSpace { dimensions: self.page_style.dimensions, padding: self.page_style.margins, - alignment: Alignment::Left, - shrink_to_fit: false, }; let pages = layout_tree( @@ -105,8 +103,10 @@ impl<'p> Typesetter<'p> { LayoutContext { loader: &self.loader, style: &self.text_style, + alignment: Alignment::Left, space, - extra_space: Some(space), + followup_spaces: Some(space), + shrink_to_fit: false, }, )?; |
