Lines Matching refs:TextWrapper
16 :func:`fill`, as well as :class:`TextWrapper`, the class that does all the work,
19 otherwise, you should use an instance of :class:`TextWrapper` for efficiency.
27 :class:`TextWrapper`, documented below. *width* defaults to ``70``.
29 See the :meth:`TextWrapper.wrap` method for additional details on how
43 Both :func:`wrap` and :func:`fill` work by creating a :class:`TextWrapper`
46 to create your own :class:`TextWrapper` object.
50 :attr:`TextWrapper.break_long_words` is set to false.
81 .. class:: TextWrapper(...)
83 The :class:`TextWrapper` constructor accepts a number of optional keyword
87 wrapper = TextWrapper(initial_indent="* ")
91 wrapper = TextWrapper()
94 You can re-use the same :class:`TextWrapper` object many times, and you can
98 The :class:`TextWrapper` instance attributes (and keyword arguments to the
106 :class:`TextWrapper` guarantees that no output line will be longer than
166 (default: ``False``) If true, :class:`TextWrapper` attempts to detect
210 :class:`TextWrapper` also provides two public methods, analogous to the
217 instance attributes of the :class:`TextWrapper` instance. Returns a list