From 7b827ff1497e6d7c365b7632b294ef39fcf234a0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 9 Sep 2016 11:48:10 +0200 Subject: [PATCH] Add newline before header The lastest release of the `toml-rs` crate (2.1) removes leading spaces before arrays and tables, causing our tests to fail. This fixes it. --- libimagstore/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 7780c850..ec37470b 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -1440,7 +1440,7 @@ impl Entry { } pub fn to_str(&self) -> String { - format!("---{header}---\n{content}", + format!("---\n{header}---\n{content}", header = ::toml::encode_str(&self.header.header), content = self.content) }