Skip to content

str_utils

tab_lines

tab_lines(message: str) -> str

Prepends a tab to each line of the message.

Source code in cable_thermal_model/utils/str_utils.py
10
11
12
def tab_lines(message: str) -> str:
    """Prepends a tab to each line of the message."""
    return "\n".join("\t" + line for line in message.splitlines())