Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not add newline to all strings (#31)
cc/ @AucaCoyan this PR moves the `add_newline_at_end_of_file` outside of `format_inner`. the responsibility is not those of `format_single_file`, `format_string` does not add a newline to all strings anymore. tests have been fixed 👍 one thing i'm struggling with is the following test ```rust #[test] fn remove_additional_lines() { let input = "let one = 1\n\n\n"; let expected = "let one = 1\n"; run_test(input, expected); } ``` which does not pass without the `\n` in `expected` 🤔 **any idea?** 😕
- Loading branch information