Skip to content

Commit

Permalink
fix: missing newline when applying
Browse files Browse the repository at this point in the history
Fixes #78
  • Loading branch information
Misterio77 committed May 2, 2023
1 parent 0cad22a commit 73a1665
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.7.1](https://github.com/Misterio77/flavours/releases/tag/v0.7.1)

### Fixes

- Add missing newline when applying ([#78](https://github.com/misterio77/issues/78))
- Set minimum supported rust version ([#44](https://github.com/misterio77/issues/44))

## [0.7.0](https://github.com/Misterio77/flavours/releases/tag/v0.7.0)

### Additions
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "flavours"
description = "An easy to use base16 scheme manager/builder that integrates with any workflow."
version = "0.7.0"
version = "0.7.1"
authors = ["Gabriel Fontes (Misterio77) <eu@misterio.me>"]
edition = "2018"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/operations/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn replace_delimiter(
for line in file_content.lines() {
if found_start && !found_end {
if !appended {
changed_content.push_str(built_template);
changed_content.push_str(&format!("{}\n", built_template));
appended = true;
}
if line.trim().to_lowercase().eq(&end) {
Expand Down

0 comments on commit 73a1665

Please sign in to comment.