don't strip newlines from endings
This commit is contained in:
parent
d955f4ee71
commit
f740496727
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue