This is a development version (9.14.0.dev) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / IPython / utils / text / dedent

function

IPython.utils.text:dedent

source: /IPython/utils/text.py :352

Signature

def   dedent ( text : str )  →  str

Summary

Equivalent of textwrap.dedent that ignores unindented first line.

Extended Summary

This means it will still dedent strings like: '''foo is a bar '''

For use in wrap_paragraphs.

Aliases

  • IPython.core.magic.dedent