Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion parley_core/src/break_overrides.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ fn chromium_override(cx: LineBreakContext) -> Option<bool> {
//
// Note that we'd need different handling in the `after == ' '` case if we ever get the equivalent of
// CSS's whitespace-collapse: break-spaces.
if before == ' ' && after != ' ' {
if before == ' ' && after != ' '
// Mandatory break characters. A soft wrap opportunity is never valid
// immediately before one (see UAX-14 rule LB6).
&& !matches!(after, '\n' | '\u{0B}' | '\u{0C}' | '\r' | '\u{85}' | '\u{2028}' | '\u{2029}')
{
return Some(true);
}
// Before consulting 'before' / 'after' pair table, check for the special "-" case.
Expand Down
Loading