diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-11-30 22:07:08 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-11-30 22:07:08 +0100 |
| commit | fdc1b378a3eb3cf325592b801c43e2ec2478ddff (patch) | |
| tree | 0e83aa07d7ec49ac494746b44869d0306f5648fe /src/library/layout.rs | |
| parent | 21857064db8ca1bdf61b6e5ee37dff1a15083189 (diff) | |
Compress images in PDFs ⚙
Diffstat (limited to 'src/library/layout.rs')
| -rw-r--r-- | src/library/layout.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/layout.rs b/src/library/layout.rs index 26f94f22..4a787f1e 100644 --- a/src/library/layout.rs +++ b/src/library/layout.rs @@ -316,13 +316,13 @@ pub fn page(mut args: Args, ctx: &mut EvalContext) -> Value { args.done(ctx); if let Some(body) = body { - ctx.end_page_group(); + ctx.end_page_group(false); ctx.start_page_group(true); body.eval(ctx); ctx.state = snapshot; } - ctx.end_page_group(); + ctx.end_page_group(false); ctx.start_page_group(false); Value::None @@ -331,7 +331,7 @@ pub fn page(mut args: Args, ctx: &mut EvalContext) -> Value { /// `pagebreak`: Start a new page. pub fn pagebreak(args: Args, ctx: &mut EvalContext) -> Value { args.done(ctx); - ctx.end_page_group(); + ctx.end_page_group(false); ctx.start_page_group(true); Value::None } |
