Comment token text to comment lines without the "#", blank lines kept as "".
(value: str)
| 40 | |
| 41 | |
| 42 | def _token_lines(value: str) -> list[str]: |
| 43 | """Comment token text to comment lines without the "#", blank lines kept as "".""" |
| 44 | out = [] |
| 45 | for line in _LINE_BREAKS.split(value): |
| 46 | line = line.strip() |
| 47 | out.append(line[1:].lstrip() if line.startswith("#") else line) |
| 48 | return out |
| 49 | |
| 50 | |
| 51 | def _text_to_lines(text: str) -> list[str]: |
no test coverage detected