MCPcopy
hub / github.com/pallets/click / write_text

Method write_text

src/click/formatting.py:213–227  ·  view source on GitHub ↗

Writes re-indented text into the buffer. This rewraps and preserves paragraphs.

(self, text: str)

Source from the content-addressed store, hash-verified

211 self.write("\n")
212
213 def write_text(self, text: str) -> None:
214 """Writes re-indented text into the buffer. This rewraps and
215 preserves paragraphs.
216 """
217 indent = " " * self.current_indent
218 self.write(
219 wrap_text(
220 text,
221 self.width,
222 initial_indent=indent,
223 subsequent_indent=indent,
224 preserve_paragraphs=True,
225 )
226 )
227 self.write("\n")
228
229 def write_dl(
230 self,

Callers 4

format_help_textMethod · 0.80
format_epilogMethod · 0.80

Calls 2

writeMethod · 0.95
wrap_textFunction · 0.85

Tested by 2