Skip to content

Commit

Permalink
Add a newline to the end of .traj and .chor writing
Browse files Browse the repository at this point in the history
This is primarily for formatters like wpiformat to pass the file.
  • Loading branch information
shueja committed Nov 28, 2024
1 parent 2940dd5 commit 90f7f40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src-core/src/file_management/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ async fn write_serializable<T: Serialize + Send>(contents: T, file: &Path) -> Ch
.ok_or_else(|| ChoreoError::FileWrite(file.to_path_buf()))?;
fs::create_dir_all(parent).await?;
fs::write(file, json).await?;
// end with a blank line to make e.g. wpiformat happy
fs::write(file, "\n").await?;
Ok(())
}

Expand Down

0 comments on commit 90f7f40

Please sign in to comment.