align_text#
- dpeeg.utils.align_text(prefix: str, text: str, only_head: bool = True) str[source]#
Aligns text, adding a specified prefix to the beginning of line.
- Parameters:
- Returns:
align_text – The aligned text.
- Return type:
Examples
>>> print(align_text("+ ", text, only_head=False)) + First line + Second line