Compare commits

..

No commits in common. "88e451b3dc5c23f52d4fe69d1c6abb4ca9463b1a" and "22a57fcf5c52cc0e961368a6d6fb7e9a82312b48" have entirely different histories.

2 changed files with 3 additions and 1 deletions

View File

@ -199,7 +199,7 @@ impl PackageStorage {
// The place at which the specific package version will live in the end.
let package_dir = base_dir.join(format!("{}", spec.version));
// To prevent multiple Typst instances from interfering, we download
// To prevent multiple Typst instances from interferring, we download
// into a temporary directory first and then move this directory to
// its final destination.
//

View File

@ -22,6 +22,8 @@ pub(crate) fn build_metadata(gc: &GlobalContext) -> Metadata {
.keywords(gc.document.info.keywords.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 {
metadata = metadata.language(lang.as_str().to_string());
}