Python stdlib module — textwrap. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.dedent()Neutraldedent(text)
Remove any common leading whitespace from every line in `text`.
.fill()Neutralfill(text, width, kwargs)
Fill a single paragraph of text, returning a new string.
.indent()Neutralindent(text, prefix, predicate)
Adds 'prefix' to the beginning of selected lines in 'text'.
.shorten()Neutralshorten(text, width, kwargs)
Collapse and truncate the given text to fit in the given width.
.wrap()Neutralwrap(text, width, kwargs)
Wrap a single paragraph of text, returning a list of wrapped lines.
.TextWrapper()NeutralTextWrapper(...)
Object for wrapping/filling text. The public interface consists of
| FQN | Field | |
|---|---|---|
| textwrap | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import textwrap