mirror of
https://github.com/Dummi26/mers.git
synced 2025-04-28 18:16:05 +02:00
add \n to files that dont end in one to prevent weird errors
This commit is contained in:
parent
52be3d04f0
commit
7a7da1e946
@ -75,6 +75,9 @@ impl File {
|
||||
None => break,
|
||||
}
|
||||
}
|
||||
if !data.ends_with('\n') {
|
||||
data.push('\n');
|
||||
}
|
||||
let chars = data.char_indices().collect();
|
||||
Self {
|
||||
path,
|
||||
|
Loading…
Reference in New Issue
Block a user