diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-09-04 15:21:40 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-09-04 18:10:35 +0200 |
| commit | 14c25a26bc8cd188620f5dcfd1b498d3fae1bff4 (patch) | |
| tree | 71e2e839cc2c6e879e0ddefe9f093b720ee6aa61 /scripts | |
| parent | 97bcc8167934097b20b5a83bc311950f40e15496 (diff) | |
| download | muhqs-game-14c25a26bc8cd188620f5dcfd1b498d3fae1bff4.tar.gz muhqs-game-14c25a26bc8cd188620f5dcfd1b498d3fae1bff4.zip | |
update the map definitions
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/generate_map_img.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/generate_map_img.py b/scripts/generate_map_img.py index 254581f2..39c41a45 100755 --- a/scripts/generate_map_img.py +++ b/scripts/generate_map_img.py @@ -232,7 +232,8 @@ def generate_img(map_path: pathlib.Path): with open(map_path, 'r', encoding="utf8") as map_file: map_definition = yaml.full_load(map_file) - map_string = map_definition['map'] + # strip trailing newlines from the map definition + map_string = map_definition['map'].strip("\n") # ensure that all keys are actually strings symbols = {str(k): v for k, v in map_definition['symbols'].items()} |
