Skip to content

Fix handling of line break overrides before newlines - #676

Merged
DJMcNab merged 1 commit into
linebender:mainfrom
DJMcNab:line_break_override_newline
Jul 7, 2026
Merged

Fix handling of line break overrides before newlines#676
DJMcNab merged 1 commit into
linebender:mainfrom
DJMcNab:line_break_override_newline

Conversation

@DJMcNab

@DJMcNab DJMcNab commented Jul 6, 2026

Copy link
Copy Markdown
Member

The existing code had a bug where this would have made a soft break happen immediately before a mandatory break, which means that the mandatory break would have been pushed down a line, which is wrong.

Note that the a "visual" reproduction relies on Canva's forked, unconditional implementation of #619 (see conor-93#3), so I haven't added a test here.

@DJMcNab
DJMcNab enabled auto-merge July 6, 2026 23:58

@nicoburns nicoburns left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. And I'm also inclined to trust your internal testing of this until such time as we have a better setup here.

@DJMcNab
DJMcNab added this pull request to the merge queue Jul 7, 2026
Merged via the queue into linebender:main with commit 8ab311d Jul 7, 2026
24 checks passed
@DJMcNab
DJMcNab deleted the line_break_override_newline branch July 7, 2026 08:34
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