True when the block has any bullet-shaped entries.
(body: list[str])
| 146 | |
| 147 | |
| 148 | def block_has_content(body: list[str]) -> bool: |
| 149 | """True when the block has any bullet-shaped entries.""" |
| 150 | return any(BULLET_RE.match(line) for line in body) |
| 151 | |
| 152 | |
| 153 | def trim_trailing_blank(arr: list[str]) -> list[str]: |