mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Remove duplicated lookup
This commit is contained in:
parent
265b37d12d
commit
995fc40363
@ -718,7 +718,8 @@ fn prepare<'a>(
|
||||
cursor = end;
|
||||
}
|
||||
|
||||
if TextElem::cjk_latin_spacing_in(styles).is_auto() {
|
||||
let cjk_latin_spacing = TextElem::cjk_latin_spacing_in(styles).is_auto();
|
||||
if cjk_latin_spacing {
|
||||
add_cjk_latin_spacing(&mut items);
|
||||
}
|
||||
|
||||
@ -732,7 +733,7 @@ fn prepare<'a>(
|
||||
align: AlignElem::alignment_in(styles).resolve(styles).x,
|
||||
justify: ParElem::justify_in(styles),
|
||||
hang: ParElem::hanging_indent_in(styles),
|
||||
cjk_latin_spacing: TextElem::cjk_latin_spacing_in(styles).is_auto(),
|
||||
cjk_latin_spacing,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user