epy.dedent#
- etils.epy.dedent(text: str) str[source]
Wrapper around textwrap.dedent which also strip() the content.
Before:
text = textwrap.dedent( \"\"\"\\ A( x=1, )\"\"\" )
After:
text = epy.dedent( \"\"\" A( x=1, ) \"\"\" )
- Parameters:
text – The text to dedent
- Returns:
The dedented text