How to remove extra indentation of Python triple quoted multi-line strings? November 25, 2022 by Tarik textwrap.dedent from the standard library is there to automatically undo the wacky indentation.