Skip to content

Commit 92debf8

Browse files
authored
Don't strip the input unnecessarily (#27)
This breaks some puzzles that rely on leading whitespace, notably today's.
1 parent 3e1b000 commit 92debf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn get_from_path_or_else<E: Error>(
7474
let from_path = read_to_string(path);
7575

7676
if let Ok(res) = from_path {
77-
Ok(res.trim().to_string())
77+
Ok(res)
7878
} else {
7979
let res = fallback()?;
8080
create_dir_all(path.parent().expect("no parent directory"))

0 commit comments

Comments
 (0)