scheme: ignore empty lines in schemes

This commit is contained in:
2 * r + 2 * t
2025-10-25 22:41:34 +11:00
parent b2ea4e3aad
commit cc458bf859
+1 -1
View File
@@ -200,7 +200,7 @@ scheme: Scheme = None
def read_colours_from_file(path: Path) -> dict[str, str]: def read_colours_from_file(path: Path) -> dict[str, str]:
return {k.strip(): v.strip() for k, v in (line.split(" ") for line in path.read_text().splitlines())} return {k.strip(): v.strip() for k, v in (line.split(" ") for line in path.read_text().splitlines() if line)}
def get_scheme_path() -> Path: def get_scheme_path() -> Path: