First non-empty line of a task's directive body, trimmed — the walkthrough narrates with headlines, not whole bodies.
(text: &str)
| 852 | /// First non-empty line of a task's directive body, trimmed — the walkthrough |
| 853 | /// narrates with headlines, not whole bodies. |
| 854 | fn task_headline(text: &str) -> &str { |
| 855 | text.lines() |
| 856 | .map(str::trim) |
| 857 | .find(|l| !l.is_empty()) |
| 858 | .unwrap_or("") |
| 859 | } |
| 860 | |
| 861 | /// Group the candidate modifications into ordered semantic layers. |
| 862 | /// |
no test coverage detected