Function difft::replace_tabs[][src]

pub(crate) fn replace_tabs(src: &str, tab_width: usize) -> String
Expand description

Return a copy of str with all the tab characters replaced by tab_width strings.

TODO: This break parsers that require tabs, such as Makefile parsing. We shouldn’t do this transform until after parsing.