Removing multiple newlines from EOF?
Open
enhancement
hclwrite
v2
- Dominant language
- Go
- Stars
- 5.8k
- Forks
- 657
- Avg merge
- 20h 36m
- Merged PRs (30d)
- 6
Description
Hello,
When using `terraform fmt` I noticed that multiple newlines are not removed (_ie_ collapsed down to a single newline) from ends of files. Would maintainers be open to a PR that would fix this?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the behavior through the `terraform fmt` formatting path and locate the formatter code that handles end-of-file newlines. Add coverage for files ending with multiple newlines; done means formatting collapses them to a single trailing newline without changing other content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100