Remove indentation from first line of text.
(s: str, n: int = 4)
| 33 | |
| 34 | |
| 35 | def dedent_initial(s: str, n: int = 4) -> str: |
| 36 | """Remove indentation from first line of text.""" |
| 37 | return s[n:] if s[:n] == ' ' * n else s |
| 38 | |
| 39 | |
| 40 | def dedent(s: str, sep: str = '\n') -> str: |