[Python-checkins] bpo-44544: add textwrap placeholder arg (GH-27671)

miss-islington webhook-mailer at python.org
Sat Mar 19 08:48:03 EDT 2022


https://github.com/python/cpython/commit/c1f327f30db09388fc777196e233b7a6182c6efa
commit: c1f327f30db09388fc777196e233b7a6182c6efa
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022年03月19日T05:47:58-07:00
summary:
bpo-44544: add textwrap placeholder arg (GH-27671)
(cherry picked from commit cb7874f49d3d55df73a3c529773af14e2e344fb7)
Co-authored-by: andrei kulakov <andrei.avk at gmail.com>
files:
M Doc/library/textwrap.rst
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst
index 7780e24176965..1a9d5f98f78a7 100644
--- a/Doc/library/textwrap.rst
+++ b/Doc/library/textwrap.rst
@@ -21,7 +21,8 @@ functions should be good enough; otherwise, you should use an instance of
 subsequent_indent="", expand_tabs=True, \
 replace_whitespace=True, fix_sentence_endings=False, \
 break_long_words=True, drop_whitespace=True, \
- break_on_hyphens=True, tabsize=8, max_lines=None)
+ break_on_hyphens=True, tabsize=8, max_lines=None, \
+ placeholder=' [...]')
 
 Wraps the single paragraph in *text* (a string) so every line is at most
 *width* characters long. Returns a list of output lines, without final
@@ -39,7 +40,7 @@ functions should be good enough; otherwise, you should use an instance of
 replace_whitespace=True, fix_sentence_endings=False, \
 break_long_words=True, drop_whitespace=True, \
 break_on_hyphens=True, tabsize=8, \
- max_lines=None)
+ max_lines=None, placeholder=' [...]')
 
 Wraps the single paragraph in *text*, and returns a single string containing the
 wrapped paragraph. :func:`fill` is shorthand for ::


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /