Quizard/utils/utils.py
2025-04-11 16:15:19 +03:00

4 lines
139 B
Python

def indent(text: str, spaces: int = 2) -> str:
prefix = " " * spaces
return "\n".join(prefix + line for line in text.splitlines())