MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / preformat

Method preformat

tools/python-3.11.9-amd64/Lib/pydoc.py:636–640  ·  view source on GitHub ↗

Format literal preformatted text.

(self, text)

Source from the content-addressed store, hash-verified

634 return self.section(title, *args)
635
636 def preformat(self, text):
637 """Format literal preformatted text."""
638 text = self.escape(text.expandtabs())
639 return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
640 ' ', '&nbsp;', '\n', '<br>\n')
641
642 def multicolumn(self, list, format):
643 """Format a list of items into a multi-column list."""

Callers 1

htmlFunction · 0.80

Calls 3

expandtabsMethod · 0.80
replaceFunction · 0.70
escapeMethod · 0.45

Tested by

no test coverage detected