Quizard/modules/utils/utils.py
2025-04-18 21:56:38 +03:00

7 lines
168 B
Python

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