dub icon indicating copy to clipboard operation
dub copied to clipboard

dub strips newline at end of dub.json

Open Moth-Tolias opened this issue 3 years ago • 0 comments
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.

Moth-Tolias avatar Feb 17 '22 17:02 Moth-Tolias