1
0
mirror of synced 2024-12-13 07:21:07 +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 - jubeat analyser : Use "EXT" instead of "?" as the fallback difficulty name when loading
## Fixed ## Fixed
- memon : Fix TypeError that would occur when trying to convert to memon - 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 # v0.1.2
## Fixed ## Fixed

View File

@ -328,9 +328,12 @@ def _dump_memo2_chart(
file.write(dump_command("memo2") + "\n") file.write(dump_command("memo2") + "\n")
file.write("\n")
# Notes # Notes
for _, section in sections.items(): file.write(
file.write(section.render(circle_free) + "\n") "\n\n".join(section.render(circle_free) for _, section in sections.items())
)
return file 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") raise ValueError("The song has no timing information")
chart_timings = [ chart_timings = [
chart.timing chart.timing for chart in song.charts.values() if chart.timing is not None
for chart in song.charts.values()
if chart.timing is not None
] ]
if chart_timings: if chart_timings: