TheBoxyBear / charttools

Library for editing Clone Hero song files in .NET
https://theboxybear.github.io/charttools
GNU General Public License v3.0
13 stars 4 forks source link

Events with no arguments are written with an extra space #73

Open TheBoxyBear opened 1 month ago

TheBoxyBear commented 1 month ago

Severity: Minor

Chart editors write event data as "type <arg1> <arg2>" with the space between the event type and arguments committed when no arguments are present. Although a space after the type is supported, some programs may have issues reading such events and it overalls goes against the norm of .chart files.

Steps to reproduce

  1. Create a Song

  2. Add an event at position 0 to GlobalEvents created from the event data phrase_start.

  3. Save the song to a .chart file.

Expected The file contains the line 0 = E "phrase_start" under the [Events] section.

Actual The line is 0 = E "phrase_start "