dub
dub copied to clipboard
dub strips newline at end of dub.json
trafficstars
System information
- dub version: 1.27.0
- OS Platform and distribution: windows 8
- compiler version: 2.098.0-dirty
Bug Description
dub strips the newline at the end of dub.json files when editing.
How to reproduce
- manually edit or create a dub.json file with a newline at end of file
- use dub to edit the file, e.g.
dub add fixedstring - observe that the newline at end of file has been removed
Expected Behavior
dub should leave the newline at the end of files alone, as per convention.