decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.84k stars 3.04k forks source link

(re)generated TOML file doesn't have a new newline end of file #6994

Closed razonyang closed 10 months ago

razonyang commented 10 months ago

Is your feature request related to a problem? Please describe.

I'd like to put a newline at the end of file, but after modifying an entry, that line was removed.

Related PR https://github.com/hbstack/site/pull/723/files.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

sonvir249 commented 10 months ago

I am working on this.

sonvir249 commented 10 months ago

@razonyang can you please specify the files?

razonyang commented 10 months ago

@sonvir249 I didn't get it.

sonvir249 commented 10 months ago

@razonyang I apologize for any confusion. I've identified a newline at the end of the file in the specified https://github.com/decaporg/decap-cms/blob/master/netlify.toml. Please correct me if I'm wrong.

razonyang commented 10 months ago

@sonvir249 Thanks for taking time on this, I want to add the newline at end of line of TOML files generated by Decap CMS, not source code of Decap CMS.

Those https://github.com/hbstack/site/pull/723/files are generated by Decap CMS (after modifying an entry), but without newline at the end, is there existing an option for this?

martinjagodic commented 10 months ago

@razonyang this is a known issue, so I am closing this as a duplicate of #1382.