(lines: list[str])
| 103 | |
| 104 | |
| 105 | def _paragraphs(lines: list[str]) -> list[str]: |
| 106 | paragraphs: list[str] = [] |
| 107 | current: list[str] = [] |
| 108 | for line in lines: |
| 109 | if not line.strip(): |
| 110 | if current: |
| 111 | paragraphs.append(_escape_text(_collapse_words(" ".join(current)))) |
| 112 | current = [] |
| 113 | continue |
| 114 | current.append(line.strip()) |
| 115 | if current: |
| 116 | paragraphs.append(_escape_text(_collapse_words(" ".join(current)))) |
| 117 | return paragraphs |
| 118 | |
| 119 | |
| 120 | def _clean_jsdoc_line(line: str) -> str: |
no test coverage detected