Function format_plain_text
Source pub fn format_plain_text(input: &str, preserve_tabs: bool) -> String
Expand description
Formats generic plain text files with LF line endings, trimmed trailing whitespace, and a single trailing newline.
§Arguments
&str - Raw file content.
bool - When true, preserves leading tabs (for example in Makefile) while stripping trailing whitespace.
§Returns
String - Normalized text content.