Skip to content

Fix escaped newline handling#236

Open
ikamensh wants to merge 2 commits intomasterfrom
codex/fix-newline-escape-issue-in-dedent
Open

Fix escaped newline handling#236
ikamensh wants to merge 2 commits intomasterfrom
codex/fix-newline-escape-issue-in-dedent

Conversation

@ikamensh
Copy link
Owner

Summary

  • preserve escaped newlines when converting to f-strings
  • keep original \n escapes if they appeared in the source
  • enable the newline escape integration test
  • include escaped_newline.py in regular integration samples
  • add single-line expectation for escaped_newline.py

Testing

  • pre-commit run --files src/flynt/code_editor.py src/flynt/utils/utils.py test/integration/test_issue83.py test/integration/utils.py test/integration/expected_out_single_line/escaped_newline.py
  • pytest -q

https://chatgpt.com/codex/tasks/task_e_68867973eaf883268b9fd2700c99eeeb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant