mirror of
https://github.com/typst/typst
synced 2025-08-03 01:37: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(());
|
||||
}
|
||||
|
||||
// FIXME: Overlapping tags in artifacts will break the close mechanism.
|
||||
if let Some((l, _)) = gc.tags.in_artifact {
|
||||
if l == loc {
|
||||
pop_artifact(gc, surface);
|
||||
}
|
||||
if let Some((l, _)) = gc.tags.in_artifact
|
||||
&& l == loc
|
||||
{
|
||||
pop_artifact(gc, surface);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user