great-ai/great_ai/helper/strip_lines.py
2022-07-04 19:31:15 +02:00

2 lines
99 B
Python

def strip_lines(text: str) -> str:
return "\n".join(line.strip() for line in text.split("\n"))