mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Update crates/typst-layout/src/inline/linebreak.rs
Co-authored-by: Max <max@mkor.je>
This commit is contained in:
parent
c6bf0200aa
commit
8b114b087c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user