From b17420e00bdd9f54edabdbbcda81ae80cfa475e6 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 6 Apr 2020 22:38:55 -0400 Subject: [PATCH] dont emit comma on one arg two channels special --- src/builtin/color/rgb.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtin/color/rgb.rs b/src/builtin/color/rgb.rs index 4047deb..6655aba 100644 --- a/src/builtin/color/rgb.rs +++ b/src/builtin/color/rgb.rs @@ -55,7 +55,7 @@ pub(crate) fn register(f: &mut HashMap) { Some(v) if v.is_special_function() => { let string = match channels.pop() { Some(red) => format!("rgb({}, {}, {})", red, v, blue), - None => format!("rgb({}, {})", v, blue), + None => format!("rgb({} {})", v, blue), }; return Ok(Value::Ident(string, QuoteKind::None)); } @@ -259,7 +259,7 @@ pub(crate) fn register(f: &mut HashMap) { Some(v) if v.is_special_function() => { let string = match channels.pop() { Some(red) => format!("rgba({}, {}, {})", red, v, blue), - None => format!("rgba({}, {})", v, blue), + None => format!("rgba({} {})", v, blue), }; return Ok(Value::Ident(string, QuoteKind::None)); }