[][src]Function dprint_cli_core::get_middle_truncted_text

pub fn get_middle_truncted_text(prompt: &str, text: &str) -> String

This is necessary because Indicatif only supports messages on one line. If the lines span multiple lines then issue #278 occurs.

This takes a text like "Downloading " and "https://dprint.dev/somelongurl" and may truncate it to "Downloading https://dprint.dev...longurl"