summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorPg Biel <9021226+PgBiel@users.noreply.github.com>2023-04-19 11:19:19 -0300
committerGitHub <noreply@github.com>2023-04-19 16:19:19 +0200
commit66c707f2169c00eee739abe92d876c9288fc038d (patch)
tree05c541c63a5369b10837f0a738dcec0b0a5444af /library
parent1e934def566832c2722c63d5b48df631996c6e88 (diff)
fix ref->cite span (#811)
Diffstat (limited to 'library')
-rw-r--r--library/src/meta/reference.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/meta/reference.rs b/library/src/meta/reference.rs
index 13d7b8ec..4e1cfa7f 100644
--- a/library/src/meta/reference.rs
+++ b/library/src/meta/reference.rs
@@ -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())?;