MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / dedent

Method dedent

markdown/test_tools.py:81–88  ·  view source on GitHub ↗

Dedent text.

(self, text)

Source from the content-addressed store, hash-verified

79 self.assertEqual(getattr(md, key), value)
80
81 def dedent(self, text):
82 """
83 Dedent text.
84 """
85
86 # TODO: If/when actual output ends with a newline, then use:
87 # return textwrap.dedent(text.strip('/n'))
88 return textwrap.dedent(text).strip()
89
90
91class recursionlimit:

Calls

no outgoing calls

Tested by

no test coverage detected