Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dub strips newline at end of dub.json #2222

Open
Moth-Tolias opened this issue Feb 17, 2022 · 0 comments
Open

dub strips newline at end of dub.json #2222

Moth-Tolias opened this issue Feb 17, 2022 · 0 comments
Labels
bug good first issue Good for newcomers to fix in a PR

Comments

@Moth-Tolias
Copy link

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.

@WebFreak001 WebFreak001 added bug good first issue Good for newcomers to fix in a PR labels Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Good for newcomers to fix in a PR
Projects
None yet
Development

No branches or pull requests

2 participants