mirror of
https://github.com/typst/typst
synced 2025-08-23 03:04:14 +08:00
Only mention name if we have it?
This commit is contained in:
parent
31af413b98
commit
31f25ed0fe
@ -224,11 +224,14 @@ impl Show for Packed<BibliographyElem> {
|
|||||||
let references = works
|
let references = works
|
||||||
.references
|
.references
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.ok_or_else(|| {
|
.ok_or_else(|| match self.style(styles).source {
|
||||||
eco_format!(
|
CslSource::Named(style) => eco_format!(
|
||||||
"{:?} CSL style is not suitable for bibliographies",
|
"CSL style `{}` is not suitable for bibliographies",
|
||||||
self.style(styles).into_value()
|
style.display_name()
|
||||||
)
|
),
|
||||||
|
CslSource::Normal(..) => {
|
||||||
|
eco_format!("CSL style is not suitable for bibliographies")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.at(span)?;
|
.at(span)?;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user