1
0
mirror of synced 2024-12-12 15:01:09 +01:00

Add blank lines between blocks in #memo2 rendering

This commit is contained in:
Stepland 2021-05-01 13:58:53 +02:00
parent 7128dcc559
commit 6a51c153b7
3 changed files with 7 additions and 5 deletions

View File

@ -3,6 +3,7 @@
- jubeat analyser : Use "EXT" instead of "?" as the fallback difficulty name when loading
## Fixed
- memon : Fix TypeError that would occur when trying to convert to memon
- #memo2 : Fix #memo2 rendering missing blank lines between blocks, while technically still valid files, this made #memo2 files rendered by jubeatools absolutely fugly and very NOT human friendly
# v0.1.2
## Fixed

View File

@ -328,9 +328,12 @@ def _dump_memo2_chart(
file.write(dump_command("memo2") + "\n")
file.write("\n")
# Notes
for _, section in sections.items():
file.write(section.render(circle_free) + "\n")
file.write(
"\n\n".join(section.render(circle_free) for _, section in sections.items())
)
return file

View File

@ -274,9 +274,7 @@ def _raise_if_unfit_for_v0(song: Song, version: str) -> None:
raise ValueError("The song has no timing information")
chart_timings = [
chart.timing
for chart in song.charts.values()
if chart.timing is not None
chart.timing for chart in song.charts.values() if chart.timing is not None
]
if chart_timings: