From 105cda0e698fe86266d706f4e3bacc081e65c2aa Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 10 Jan 2021 21:38:58 +0100 Subject: =?UTF-8?q?Braced=20content=20->=20Bracketed=20templates=20?= =?UTF-8?q?=E2=9C=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/layout.rs | 6 +++--- src/library/style.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/library') diff --git a/src/library/layout.rs b/src/library/layout.rs index 774e6781..59c1954b 100644 --- a/src/library/layout.rs +++ b/src/library/layout.rs @@ -101,7 +101,7 @@ pub fn align(ctx: &mut EvalContext, args: &mut Args) -> Value { ctx.start_par_group(); } - if let Some(body) = args.find::(ctx) { + if let Some(body) = args.find::(ctx) { body.eval(ctx); ctx.state = snapshot; } @@ -190,7 +190,7 @@ pub fn box_(ctx: &mut EvalContext, args: &mut Args) -> Value { ctx.start_content_group(); - if let Some(body) = args.find::(ctx) { + if let Some(body) = args.find::(ctx) { body.eval(ctx); } @@ -317,7 +317,7 @@ pub fn page(ctx: &mut EvalContext, args: &mut Args) -> Value { ctx.set_dirs(Gen::new(main, cross)); let mut softness = ctx.end_page_group(|_| false); - if let Some(body) = args.find::(ctx) { + if let Some(body) = args.find::(ctx) { // TODO: Restrict body to a single page? ctx.start_page_group(Softness::Hard); body.eval(ctx); diff --git a/src/library/style.rs b/src/library/style.rs index 3bdcdfd4..7b2772cc 100644 --- a/src/library/style.rs +++ b/src/library/style.rs @@ -95,7 +95,7 @@ pub fn font(ctx: &mut EvalContext, args: &mut Args) -> Value { } } - if let Some(body) = args.find::(ctx) { + if let Some(body) = args.find::(ctx) { body.eval(ctx); ctx.state = snapshot; } -- cgit v1.2.3