Commit cf2f45d
committed
Only trim line breaks at the end of input file
The general trim() function trims at the file's start, too.
This is a problem when whitespace at the beginning of the
first line is essential (as in 2017, day 19's input).
Also: Add a line break in the Grid class for better debugging.1 parent f82370b commit cf2f45d
File tree
2 files changed
+4
-2
lines changed- src/main/kotlin/de/ronny_h/aoc
- extensions/grids
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments