mirror of https://github.com/stelzo/typst.git
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");
|
||||
}
|
||||
|
||||
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())?;
|
||||
|
|
|
|||
Loading…
Reference in New Issue