Repository navigation
tools: pin text writes to newline="\n" in leonida_tui and wave_diff - #7857
Open
dentedlmfao wants to merge 1 commit into
Open
dentedlmfao wants to merge 1 commit into
dentedlmfao wants to merge 1 commit into
Conversation
gut0to
approved these changes
Nov 23, 2026
gut0to
left a comment
There was a problem hiding this comment.
Both write sites now disable Python’s platform newline translation while preserving UTF-8/error handling and the existing line content. Ran python -I tests/test_text_write_line_endings.py on this PR head: 3 tests passed.
4 tasks done
4 tasks done
|
Tested
#7819 makes the same two changes, also turns the file green, and adds a byte-level regression test; the two edit the same lines, so only one can land as is. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a regression where
tests/test_text_write_line_endings.pyfailed onmainbecausetools/leonida_tui.pyandtools/wave_diff.pyopened text files without specifyingnewline="\n".tools/leonida_tui.py: addednewline="\n"toStageConsole.__init__.tools/wave_diff.py: addednewline="\n"to_write().AI-assisted. Tested with
python3 -I tests/test_text_write_line_endings.py,python3 -I tests/test_leonida_tui.py, andpython3 -I tests/test_wave_diff.pyon macOS (Apple Silicon, CPU-only standard library tests). No game data.