[CHERRY-PICK] 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.
This commit is contained in:
Matthias Beyer 2016-09-09 11:48:10 +02:00
parent 4b281dddc9
commit 41c7cd2363

View file

@ -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)
}