from brian2.utils.stringtools import deindent)
deindent(text, numtabs=None, spacespertab=4, docstring=False)¶
Returns a copy of the string with the common indentation removed.
Note that all tab characters are replaced with
docstringflag is set, the first line is treated differently and is assumed to be already correctly tabulated.
numtabsoption is given, the amount of indentation to remove is given explicitly and not the common indentation.