(content: &str)
| 420 | } |
| 421 | |
| 422 | fn single_line(content: &str) -> String { |
| 423 | let normalized = content.split_whitespace().collect::<Vec<_>>().join(" "); |
| 424 | if normalized.is_empty() { |
| 425 | "(untitled todo)".to_string() |
| 426 | } else { |
| 427 | normalized |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | #[cfg(test)] |
| 432 | mod tests { |
no test coverage detected