mirror of
https://github.com/typst/typst
synced 2025-08-23 03:04:14 +08:00
Specify which CSL style is not suitable for bibliographies
This commit is contained in:
parent
d204a28818
commit
31af413b98
@ -224,7 +224,12 @@ impl Show for Packed<BibliographyElem> {
|
|||||||
let references = works
|
let references = works
|
||||||
.references
|
.references
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.ok_or("CSL style is not suitable for bibliographies")
|
.ok_or_else(|| {
|
||||||
|
eco_format!(
|
||||||
|
"{:?} CSL style is not suitable for bibliographies",
|
||||||
|
self.style(styles).into_value()
|
||||||
|
)
|
||||||
|
})
|
||||||
.at(span)?;
|
.at(span)?;
|
||||||
|
|
||||||
if references.iter().any(|(prefix, _)| prefix.is_some()) {
|
if references.iter().any(|(prefix, _)| prefix.is_some()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user