mirror of
https://github.com/typst/typst
synced 2025-08-20 09:49:02 +08:00
Compare commits
2 Commits
22a57fcf5c
...
88e451b3dc
Author | SHA1 | Date | |
---|---|---|---|
|
88e451b3dc | ||
|
cc3a68ecb1 |
@ -199,7 +199,7 @@ impl PackageStorage {
|
|||||||
// The place at which the specific package version will live in the end.
|
// The place at which the specific package version will live in the end.
|
||||||
let package_dir = base_dir.join(format!("{}", spec.version));
|
let package_dir = base_dir.join(format!("{}", spec.version));
|
||||||
|
|
||||||
// To prevent multiple Typst instances from interferring, we download
|
// To prevent multiple Typst instances from interfering, we download
|
||||||
// into a temporary directory first and then move this directory to
|
// into a temporary directory first and then move this directory to
|
||||||
// its final destination.
|
// its final destination.
|
||||||
//
|
//
|
||||||
|
@ -22,8 +22,6 @@ pub(crate) fn build_metadata(gc: &GlobalContext) -> Metadata {
|
|||||||
.keywords(gc.document.info.keywords.iter().map(EcoString::to_string).collect())
|
.keywords(gc.document.info.keywords.iter().map(EcoString::to_string).collect())
|
||||||
.authors(gc.document.info.author.iter().map(EcoString::to_string).collect());
|
.authors(gc.document.info.author.iter().map(EcoString::to_string).collect());
|
||||||
|
|
||||||
let lang = gc.languages.iter().max_by_key(|(_, &count)| count).map(|(&l, _)| l);
|
|
||||||
|
|
||||||
if let Some(lang) = lang {
|
if let Some(lang) = lang {
|
||||||
metadata = metadata.language(lang.as_str().to_string());
|
metadata = metadata.language(lang.as_str().to_string());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user