summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorandrei kulakov <andrei.avk@gmail.com>2022-03-19 12:27:37 (GMT)
committerGitHub <noreply@github.com>2022-03-19 12:27:37 (GMT)
commitcb7874f49d3d55df73a3c529773af14e2e344fb7 (patch)
tree40e0bb0991a256b997951c54c4b519f421d8497e /Doc
parent4142961b9f5ad3bf93976a6a7162f8049e354018 (diff)
downloadcpython-cb7874f49d3d55df73a3c529773af14e2e344fb7.zip
cpython-cb7874f49d3d55df73a3c529773af14e2e344fb7.tar.gz
cpython-cb7874f49d3d55df73a3c529773af14e2e344fb7.tar.bz2
bpo-44544: add textwrap placeholder arg (GH-27671)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/textwrap.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst
index 7780e24..1a9d5f9 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 ::