From 1aec9b6479beecd327456780ae7c711040011933 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 28 Jan 2017 21:25:37 -0800 Subject: fiddling with whitespace for other reprs --- src/transpile_scheme.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/transpile_scheme.rs') diff --git a/src/transpile_scheme.rs b/src/transpile_scheme.rs index 6f993b3..d6f437a 100644 --- a/src/transpile_scheme.rs +++ b/src/transpile_scheme.rs @@ -36,13 +36,14 @@ impl TranspileScheme for ModelicaModel { let mut args: Vec = self.get_free_vars().iter().map(|s| s.clone()).collect(); args.sort(); args.extend(params); - Ok(format!(r#"(lambda ({args}) - (let ({constants}) - (letrec ({binds}) - (list {outputs}))))"#, + Ok(format!( +r#"(lambda ({args}) + (let ({constants}) + (letrec ({binds}) + (list {outputs}))))"#, args = args.join(" "), - constants = constants.join("\n "), - binds = binds.join("\n "), + constants = constants.join("\n "), // NB: whitespace + binds = binds.join("\n "), // NB: whitespace outputs = outputs.join(" "))) } } -- cgit v1.2.3