summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-05-19 11:33:11 (GMT)
committerHynek Schlawack <hs@ox.cx>2012-05-19 11:33:11 (GMT)
commitd527259f14dd6094f0a417ea83e66b8f233e38a3 (patch)
treecdafd33bae9ac524e1c99a2f4e72a31fca25d4c1 /Doc
parentd34b57a9a2810e79d6f6aa7dc12832c4e4b214a5 (diff)
downloadcpython-d527259f14dd6094f0a417ea83e66b8f233e38a3.zip
cpython-d527259f14dd6094f0a417ea83e66b8f233e38a3.tar.gz
cpython-d527259f14dd6094f0a417ea83e66b8f233e38a3.tar.bz2
#13152: Allow to specify a custom tabsize for expanding tabs in textwrap
Patch by John Feuerstein.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/textwrap.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst
index a814962..a74789c 100644
--- a/Doc/library/textwrap.rst
+++ b/Doc/library/textwrap.rst
@@ -107,6 +107,15 @@ indentation from strings that have unwanted whitespace to the left of the text.
expanded to spaces using the :meth:`expandtabs` method of *text*.
+ .. attribute:: tabsize
+
+ (default: ``8``) If :attr:`expand_tabs` is true, then all tab characters
+ in *text* will be expanded to zero or more spaces, depending on the
+ current column and the given tab size.
+
+ .. versionadded:: 3.3
+
+
.. attribute:: replace_whitespace
(default: ``True``) If true, each whitespace character (as defined by