typst-pack 0.5.0

Portable single-file packs of Typst projects: sources, resources, packages, and fonts
Documentation
1
2
3
4
5
6
7
8
9
pub(crate) fn format_error_list(issues: &[impl std::fmt::Display]) -> String {
    use std::fmt::Write as _;

    let mut rendered = String::new();
    for issue in issues {
        write!(rendered, ": {issue}").expect("writing to a String cannot fail");
    }
    rendered
}