mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
fix ref->cite span (#811)
This commit is contained in:
parent
1e934def56
commit
66c707f216
@ -159,7 +159,7 @@ impl Show for RefElem {
|
|||||||
bail!(self.span(), "label occurs in the document and its bibliography");
|
bail!(self.span(), "label occurs in the document and its bibliography");
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(self.to_citation(vt, styles)?.pack());
|
return Ok(self.to_citation(vt, styles)?.pack().spanned(self.span()));
|
||||||
}
|
}
|
||||||
|
|
||||||
let elem = elem.at(self.span())?;
|
let elem = elem.at(self.span())?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user