fn trim_end_unless_two_whitespaces(s: &str, is_doc_comment: bool) -> &str
Trim trailing whitespaces unless they consist of two or more whitespaces.