mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +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
|
// and inline item, if the LTR-ISOLATE could end up as the
|
||||||
// only character on the previous line.
|
// only character on the previous line.
|
||||||
LineBreak::CombiningMark
|
LineBreak::CombiningMark
|
||||||
if c == LTR_ISOLATE
|
if text[point..].starts_with(OBJ_REPLACE)
|
||||||
&& text[point..].starts_with(OBJ_REPLACE)
|
&& last == (point - c.len_utf8()) =>
|
||||||
&& last == (point - LTR_ISOLATE.len_utf8()) =>
|
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user