From fbeb101e7fa6456ccfeee8ed7d501f7e69b994db Mon Sep 17 00:00:00 2001 From: greg Date: Sat, 16 Sep 2017 15:05:11 -0700 Subject: [PATCH] make parse trace have newlines --- src/language.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/language.rs b/src/language.rs index a4125f7..6f8a833 100644 --- a/src/language.rs +++ b/src/language.rs @@ -83,8 +83,14 @@ impl TraceArtifact { } pub fn new_parse_trace(trace: Vec) -> TraceArtifact { - let debug = format!("Parse trace: {:?}", trace); - TraceArtifact { stage_name: "parse_trace".to_string(), debug_output: debug, text_color: "red"} + let mut output = String::new(); + + for t in trace { + output.push_str(&t); + output.push_str("\n"); + } + + TraceArtifact { stage_name: "parse_trace".to_string(), debug_output: output, text_color: "red"} } }