don't strip newlines from endings

This commit is contained in:
Max Bradbury 2020-04-23 06:57:07 +01:00
parent d955f4ee71
commit f740496727
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ impl From<String> for Ending {
fn from(string: String) -> Ending { fn from(string: String) -> Ending {
let lines: Vec<&str> = string.lines().collect(); let lines: Vec<&str> = string.lines().collect();
let id = lines[0].replace("END ", "").to_string(); let id = lines[0].replace("END ", "").to_string();
let dialogue = lines[1..].join(""); let dialogue = lines[1..].join("\n");
Ending { id, dialogue } Ending { id, dialogue }
} }