[BUG] text files should end with a new line
Resolved 💬 3 comments Opened Oct 7, 2025 by akostadinov Closed Oct 11, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Hi, generated text and code files do not end with a new line character. A tezxt line is defined as a sequence of characters ending in a new line character. Currently Claude Code doesn't follow this standard which has subtle annoying consequences.
What Should Happen?
Claude should always end a file wit ha new line character.
Error Messages/Logs
Steps to Reproduce
Ask Claude Code to generate some file.
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.9
Platform
Other
Operating System
Other Linux
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗