Merge pull request #729 from matthiasbeyer/fix-header-missing-newline

Add newline before header
This commit is contained in:
Matthias Beyer 2016-09-09 12:54:28 +02:00 committed by GitHub
commit 21714660df

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