Persistent Whitespace and Newline Issues in Generated Python Code

Resolved 💬 6 comments Opened Aug 6, 2025 by sitbon Closed Jan 6, 2026

Bug Description
CC is unable to consistently generate Python code without trailing whitespace on every blank line when surrounding lines are indented. The IDE does not automatically fix this like it does with user-written code, requiring a reformat of every file that is generated. Also, CC seems unable to properly put a newline at the end of every Python file. These problems persist or return sporadically despite repeated instruction not to do it in CLAUDE.md files.

Environment Info

  • Platform: linux
  • Terminal: pycharm
  • Version: 1.0.70
  • Feedback ID: acfc94ee-fbe9-41e9-8311-0406483e7393

Errors

[]

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗