Skip to content

fix: anchor newline-end strip to whole alternation#249

Open
santhreal wants to merge 1 commit into
jaraco:mainfrom
santhreal:fix/write-lines-anchor-nl-end
Open

fix: anchor newline-end strip to whole alternation#249
santhreal wants to merge 1 commit into
jaraco:mainfrom
santhreal:fix/write-lines-anchor-nl-end

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

Path.write_lines hits data-loss when U_NL_END ungrouped dollar strips embedded newlines. This PR fixes the regression with a focused test covering the case.

U_NL_END appended $ only to the last alternative, so Path.write_lines
stripped embedded newlines instead of trailing terminators only.
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.

1 participant