Skip to content

Commit bdf938d

Browse files
committed
Fix serialization syntax of aliases
1 parent a5e0d4f commit bdf938d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/types/record.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,12 @@ impl fmt::Display for MtxtRecord {
181181
write!(f, "transition_interval={}", format_float32(*interval))
182182
}
183183
MtxtRecord::AliasDef { value } => {
184-
write!(f, "alias {}", value.name)?;
185-
for note in &value.notes {
186-
write!(f, " {}", note)?;
184+
write!(f, "alias {} ", value.name)?;
185+
for (i, note) in value.notes.iter().enumerate() {
186+
if i > 0 {
187+
write!(f, ",")?;
188+
}
189+
write!(f, "{}", note)?;
187190
}
188191
Ok(())
189192
}

0 commit comments

Comments
 (0)