CIME.utils.indent_string
- CIME.utils.indent_string(the_string, indent_level)[source]
Indents the given string by a given number of spaces
- Args:
the_string: str indent_level: int
Returns a new string that is the same as the_string, except that each line is indented by ‘indent_level’ spaces.
In python3, this can be done with textwrap.indent.