(content: &str)
| 476 | } |
| 477 | |
| 478 | fn single_line(content: &str) -> String { |
| 479 | let normalized = content.split_whitespace().collect::<Vec<_>>().join(" "); |
| 480 | if normalized.is_empty() { |
| 481 | "(untitled todo)".to_string() |
| 482 | } else { |
| 483 | normalized |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | #[cfg(test)] |
| 488 | mod tests { |
no test coverage detected