gmail_rules.utils.helpers.indent#

indent(multiline_text: str, amount: int = 1, indent_character: str = '\t') str[source]#

Indents a string with amount indent_character

Prefix each newline (”n”) in multiline_text with amount * indent_character

Parameters:
  • multiline_text (str) – Multiline str containing “n” that should be indented

  • amount (int, optional) – The amount that multiline_text should be indented by, defaulted to 1

  • indent_character (str, optional) – The character that multiline_text should be indented with, defaulted to “t”

Returns:

The texted indented with amount instances of the indent_character

Return type:

str