From 8b114b087c372d96d417af8041b5676707fcfef4 Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Thu, 8 May 2025 17:07:11 +0200 Subject: [PATCH] Update crates/typst-layout/src/inline/linebreak.rs Co-authored-by: Max --- crates/typst-layout/src/inline/linebreak.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/typst-layout/src/inline/linebreak.rs b/crates/typst-layout/src/inline/linebreak.rs index ef8159035..63754f358 100644 --- a/crates/typst-layout/src/inline/linebreak.rs +++ b/crates/typst-layout/src/inline/linebreak.rs @@ -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; }