First non-empty line of a task's directive body, trimmed — the walkthrough narrates with headlines, not whole bodies.
(text: &str)
| 829 | /// First non-empty line of a task's directive body, trimmed — the walkthrough |
| 830 | /// narrates with headlines, not whole bodies. |
| 831 | fn task_headline(text: &str) -> &str { |
| 832 | text.lines() |
| 833 | .map(str::trim) |
| 834 | .find(|l| !l.is_empty()) |
| 835 | .unwrap_or("") |
| 836 | } |
| 837 | |
| 838 | /// Group the candidate modifications into ordered semantic layers. |
| 839 | /// |
no test coverage detected