tinymist_std::typst::foundations::repr

Function pretty_comma_list

pub fn pretty_comma_list(
    pieces: &[impl AsRef<str>],
    trailing_comma: bool,
) -> String
Expand description

Formats a comma-separated list.

Tries to format horizontally, but falls back to vertical formatting if the pieces are too long.