MCPcopy Index your code
hub / github.com/RustPython/RustPython / preformat

Method preformat

Lib/pydoc.py:700–704  ·  view source on GitHub ↗

Format literal preformatted text.

(self, text)

Source from the content-addressed store, hash-verified

698 return self.section(title, *args)
699
700 def preformat(self, text):
701 """Format literal preformatted text."""
702 text = self.escape(text.expandtabs())
703 return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
704 ' ', '&nbsp;', '\n', '<br>\n')
705
706 def multicolumn(self, list, format):
707 """Format a list of items into a multi-column list."""

Callers

nothing calls this directly

Calls 3

escapeMethod · 0.80
replaceFunction · 0.70
expandtabsMethod · 0.45

Tested by

no test coverage detected