fix ref->cite span (#811)

This commit is contained in:
Pg Biel 2023-04-19 11:19:19 -03:00 committed by GitHub
parent 1e934def56
commit 66c707f216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())?;