From 9480849ccd3d7750f67c3572c0dac01eaa973ea2 Mon Sep 17 00:00:00 2001 From: Jeremy Andrews Date: Thu, 17 Aug 2023 17:04:50 +0200 Subject: [PATCH] fix spacing issues in tests --- src/graph.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/graph.rs b/src/graph.rs index b0443063..f0baa635 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -385,12 +385,12 @@ impl<'a, T: Clone + TimeSeriesValue, U: Serialize + Copy + PartialEq + Par let formatted_line = format!( r#"{{ - name: '{label}', - type: 'line', - symbol: 'none', - sampling: 'lttb', - data: {values}, - }}, + name: '{label}', + type: 'line', + symbol: 'none', + sampling: 'lttb', + data: {values}, + }}, "#, label = label, values = json!(self.add_timestamp_to_html_graph_data( @@ -403,10 +403,10 @@ impl<'a, T: Clone + TimeSeriesValue, U: Serialize + Copy + PartialEq + Par ( format!( r#"legend: {{ - type: '{legend_type}', - width: '75%', - data: {data}, - }},"#, + type: '{legend_type}', + width: '75%', + data: {data}, + }},"#, legend_type = if self.data.len() > 4 { "scroll" } else {