Merge pull request #729 from matthiasbeyer/fix-header-missing-newline
Add newline before header
This commit is contained in:
commit
21714660df
1 changed files with 1 additions and 1 deletions
|
@ -1440,7 +1440,7 @@ impl Entry {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_str(&self) -> String {
|
pub fn to_str(&self) -> String {
|
||||||
format!("---{header}---\n{content}",
|
format!("---\n{header}---\n{content}",
|
||||||
header = ::toml::encode_str(&self.header.header),
|
header = ::toml::encode_str(&self.header.header),
|
||||||
content = self.content)
|
content = self.content)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue