(title: &str, text: &str)
| 57 | } |
| 58 | |
| 59 | fn text_section(title: &str, text: &str) -> Tree { |
| 60 | let mut section = Tree::new(title); |
| 61 | for line in text.lines().filter(|line| !line.trim().is_empty()) { |
| 62 | section.push(line); |
| 63 | } |
| 64 | section |
| 65 | } |
| 66 | |
| 67 | pub(super) fn render( |
| 68 | cmd: &ChangeCmd, |