Skip to content

fix: Preserve trailing newlines in insert_block tool#305

Merged
dwash96 merged 1 commit intocecli-dev:mainfrom
johbo:fix-trailing-newline
Dec 24, 2025
Merged

fix: Preserve trailing newlines in insert_block tool#305
dwash96 merged 1 commit intocecli-dev:mainfrom
johbo:fix-trailing-newline

Conversation

@johbo
Copy link
Copy Markdown

@johbo johbo commented Dec 22, 2025

Noticed that in some cases the newline at the end of a file has been lost. It seems to be due to the way how "splitlines" works together with "join" later. This tries to fix it and adds a small check to demonstrate the problem.

@johbo johbo force-pushed the fix-trailing-newline branch from e68482d to 7145734 Compare December 22, 2025 19:00
@dwash96 dwash96 merged commit 6ae1749 into cecli-dev:main Dec 24, 2025
8 checks passed
@dwash96 dwash96 mentioned this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants