Skip to content

Commit

Permalink
Merge pull request #28 from usadellab/trailing-newline
Browse files Browse the repository at this point in the history
Add a trailing newline to the output file
  • Loading branch information
coeit authored Apr 26, 2022
2 parents 53a69e0 + 468e06f commit b23f854
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/output_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pub fn write_output_table(
for (annotee_name, annotation) in human_readable_descriptions {
output.push_str(&(format!("\n{}\t{}", annotee_name, annotation)));
}
// add trailing newline for the last annotation
output.push_str("\n");
return write(file_path, output);
} else {
Ok(())
Expand Down

0 comments on commit b23f854

Please sign in to comment.