@@ -17,7 +17,11 @@ If you're just wrapping or filling one or two text strings, the convenience
17
17
functions should be good enough; otherwise, you should use an instance of
18
18
:class: `TextWrapper ` for efficiency.
19
19
20
- .. function :: wrap(text, width=70, **kwargs)
20
+ .. function :: wrap(text, width=70, *, initial_indent="", \
21
+ subsequent_indent="", expand_tabs=True, \
22
+ replace_whitespace=True, fix_sentence_endings=False, \
23
+ break_long_words=True, drop_whitespace=True, \
24
+ break_on_hyphens=True, tabsize=8, max_lines=None)
21
25
22
26
Wraps the single paragraph in *text * (a string) so every line is at most
23
27
*width * characters long. Returns a list of output lines, without final
@@ -30,7 +34,12 @@ functions should be good enough; otherwise, you should use an instance of
30
34
:func: `wrap ` behaves.
31
35
32
36
33
- .. function :: fill(text, width=70, **kwargs)
37
+ .. function :: fill(text, width=70, *, initial_indent="", \
38
+ subsequent_indent="", expand_tabs=True, \
39
+ replace_whitespace=True, fix_sentence_endings=False, \
40
+ break_long_words=True, drop_whitespace=True, \
41
+ break_on_hyphens=True, tabsize=8, \
42
+ max_lines=None)
34
43
35
44
Wraps the single paragraph in *text *, and returns a single string containing the
36
45
wrapped paragraph. :func: `fill ` is shorthand for ::
@@ -41,7 +50,9 @@ functions should be good enough; otherwise, you should use an instance of
41
50
:func: `wrap `.
42
51
43
52
44
- .. function :: shorten(text, width, **kwargs)
53
+ .. function :: shorten(text, width, *, fix_sentence_endings=False, \
54
+ break_long_words=True, break_on_hyphens=True, \
55
+ placeholder=' [...]')
45
56
46
57
Collapse and truncate the given *text * to fit in the given *width *.
47
58
@@ -65,7 +76,6 @@ functions should be good enough; otherwise, you should use an instance of
65
76
66
77
.. versionadded :: 3.4
67
78
68
-
69
79
.. function :: dedent(text)
70
80
71
81
Remove any common leading whitespace from every line in *text *.
0 commit comments