-
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop appending linefeeds on consecutive runs
If I run `remark-cli` several times on a file, each run will insert a final newline to the end of the checked target file. This commit adds a verification to check if the file already ends with a linefeed and doesn't include additional ones when not needed.
- Loading branch information
1 parent
66cd49f
commit 0f5fcbd
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters