bpo-44544: add textwrap placeholder arg (GH-27671)
This commit is contained in:
parent
4142961b9f
commit
cb7874f49d
@ -21,7 +21,8 @@ functions should be good enough; otherwise, you should use an instance of
|
|||||||
subsequent_indent="", expand_tabs=True, \
|
subsequent_indent="", expand_tabs=True, \
|
||||||
replace_whitespace=True, fix_sentence_endings=False, \
|
replace_whitespace=True, fix_sentence_endings=False, \
|
||||||
break_long_words=True, drop_whitespace=True, \
|
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
|
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
|
*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, \
|
replace_whitespace=True, fix_sentence_endings=False, \
|
||||||
break_long_words=True, drop_whitespace=True, \
|
break_long_words=True, drop_whitespace=True, \
|
||||||
break_on_hyphens=True, tabsize=8, \
|
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
|
Wraps the single paragraph in *text*, and returns a single string containing the
|
||||||
wrapped paragraph. :func:`fill` is shorthand for ::
|
wrapped paragraph. :func:`fill` is shorthand for ::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user