From 7a885f7c521dd75230c678c0925753dd9a819295 Mon Sep 17 00:00:00 2001 From: salt-die <53280662+salt-die@users.noreply.github.com> Date: Sun, 4 Dec 2022 23:23:01 -0600 Subject: [PATCH] Significant leading whitespace getting stripped is an issue. --- aoc_lube/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aoc_lube/__init__.py b/aoc_lube/__init__.py index 7fdb1e8..23c4333 100644 --- a/aoc_lube/__init__.py +++ b/aoc_lube/__init__.py @@ -18,7 +18,7 @@ "utils", ) -__version__ = "0.2.4" +__version__ = "0.2.5" CONFIG_DIR = Path.home() / ".aoc_lube" if not CONFIG_DIR.exists(): @@ -95,7 +95,7 @@ def fetch(year: int, day: int) -> str: raise ValueError("Request failed.") # Save input data - inputs[str(day)] = response.text.strip() + inputs[str(day)] = response.text.rstrip() input_file.write_text(tomlkit.dumps(inputs)) return inputs[str(day)]