mirror of
https://github.com/typst/typst
synced 2025-08-03 09:47:54 +08:00
fix: allow closing mismatched tags while in artifacts
This commit is contained in:
parent
d92e54ac63
commit
df6a4ba7f4
@ -294,11 +294,10 @@ pub fn handle_end(
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Overlapping tags in artifacts will break the close mechanism.
|
if let Some((l, _)) = gc.tags.in_artifact
|
||||||
if let Some((l, _)) = gc.tags.in_artifact {
|
&& l == loc
|
||||||
if l == loc {
|
{
|
||||||
pop_artifact(gc, surface);
|
pop_artifact(gc, surface);
|
||||||
}
|
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user