Add blank lines between blocks in #memo2 rendering
This commit is contained in:
parent
7128dcc559
commit
6a51c153b7
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user