MCPcopy Create free account
hub / github.com/idank/explainshell / _is_any_section_header

Function _is_any_section_header

explainshell/roff_utils.py:67–69  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

65
66
67def _is_any_section_header(line: str) -> bool:
68 stripped = line.strip()
69 return stripped.startswith(".SH ") or stripped.startswith(".Sh ")
70
71
72def _extract_section(lines: list[str], section_name: str) -> list[str]:

Callers 1

_extract_sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected