diff options
| author | Markus Westerlind <marwes91@gmail.com> | 2015-11-20 23:31:05 +0100 |
|---|---|---|
| committer | Markus Westerlind <marwes91@gmail.com> | 2015-11-20 23:31:05 +0100 |
| commit | ad7dc420cdfe22c8295c36c4e3a66cc9cf1cbe2b (patch) | |
| tree | c4e178b02211bd831c87fd416927a7c41b598af6 /tests/source | |
| parent | 3533f72c458d5772a47c9efda761edef396a9f0f (diff) | |
Avoid adding an extra newline after block comments
When block comments were rewritten to line comments they check if a new line needs to be added and adds one if needed. It only checked for '\n' however which would cause a newline to be added even if the comment was ended by "\r\n"
Diffstat (limited to 'tests/source')
| -rw-r--r-- | tests/source/comment_crlf_newline.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/source/comment_crlf_newline.rs b/tests/source/comment_crlf_newline.rs new file mode 100644 index 00000000000..189a7053179 --- /dev/null +++ b/tests/source/comment_crlf_newline.rs @@ -0,0 +1,3 @@ +/* Block comments followed by CRLF newlines should not an extra newline at the end */ + +/* Something else */ |
