diff options
Diffstat (limited to 'library/src/structure/document.rs')
| -rw-r--r-- | library/src/structure/document.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/src/structure/document.rs b/library/src/structure/document.rs index 2e5761e0..e52c92ad 100644 --- a/library/src/structure/document.rs +++ b/library/src/structure/document.rs @@ -26,7 +26,8 @@ impl LayoutRoot for DocumentNode { let mut pages = vec![]; for (page, map) in self.0.iter() { let number = 1 + pages.len(); - pages.extend(page.layout(world, number, styles.chain(map))?); + let fragment = page.layout(world, number, styles.chain(map))?; + pages.extend(fragment); } Ok(Document { |
