From f7404967277b1d8d18889b2a40d4e12637c6527c Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Thu, 23 Apr 2020 06:57:07 +0100 Subject: [PATCH] don't strip newlines from endings --- src/ending.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ending.rs b/src/ending.rs index b66a7dd..9ef6389 100644 --- a/src/ending.rs +++ b/src/ending.rs @@ -9,7 +9,7 @@ impl From for Ending { fn from(string: String) -> Ending { let lines: Vec<&str> = string.lines().collect(); let id = lines[0].replace("END ", "").to_string(); - let dialogue = lines[1..].join(""); + let dialogue = lines[1..].join("\n"); Ending { id, dialogue } }