diff --git a/mers/src/parse/file.rs b/mers/src/parse/file.rs index e6ca2ec..5c7413f 100755 --- a/mers/src/parse/file.rs +++ b/mers/src/parse/file.rs @@ -75,6 +75,9 @@ impl File { None => break, } } + if !data.ends_with('\n') { + data.push('\n'); + } let chars = data.char_indices().collect(); Self { path,