Update crates/typst-layout/src/inline/linebreak.rs

Co-authored-by: Max <max@mkor.je>
This commit is contained in:
Tobias Schmitz 2025-05-08 17:07:11 +02:00 committed by GitHub
parent c6bf0200aa
commit 8b114b087c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -712,9 +712,8 @@ fn breakpoints(p: &Preparation, mut f: impl FnMut(usize, Breakpoint)) {
// and inline item, if the LTR-ISOLATE could end up as the
// only character on the previous line.
LineBreak::CombiningMark
if c == LTR_ISOLATE
&& text[point..].starts_with(OBJ_REPLACE)
&& last == (point - LTR_ISOLATE.len_utf8()) =>
if text[point..].starts_with(OBJ_REPLACE)
&& last == (point - c.len_utf8()) =>
{
continue;
}