Fill paragraphs with newlines (or custom separator).
(s: str, width: int, sep: str = '\n')
| 43 | |
| 44 | |
| 45 | def fill_paragraphs(s: str, width: int, sep: str = '\n') -> str: |
| 46 | """Fill paragraphs with newlines (or custom separator).""" |
| 47 | return sep.join(fill(p, width) for p in s.split(sep)) |
| 48 | |
| 49 | |
| 50 | def join(l: list[str], sep: str = '\n') -> str: |
nothing calls this directly
no test coverage detected
searching dependent graphs…