From e72c1c68b932f5257cb74b2a96212939da0f8aa5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 3 Dec 2015 18:11:01 +0100 Subject: [PATCH] Fix: Output formatting The header-content separator dashes were completely missing. Shame on me. --- src/storage/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/parser.rs b/src/storage/parser.rs index d55b7e70..bdd23f19 100644 --- a/src/storage/parser.rs +++ b/src/storage/parser.rs @@ -118,7 +118,8 @@ impl Parser where let h_text = try!(self.headerp.write(&header)); debug!("Success translating header"); - Ok(h_text + &data[..]) + let text = format!("---\n{}\n---\n{}", h_text, data); + Ok(text) } fn divide_text(&self, text: &String) -> Result {