summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-13 18:15:41 (GMT)
committerGeorg Brandl <georg@python.org>2007-03-13 18:15:41 (GMT)
commit9e6b47002a563473ec966ac4d353b99df986f642 (patch)
tree773fe857bc89bda60d0fb53213b723879a0a47c7 /Doc
parent92a6baed7bfae3eaad31c47c5d80348b05a62d8c (diff)
downloadcpython-9e6b47002a563473ec966ac4d353b99df986f642.zip
cpython-9e6b47002a563473ec966ac4d353b99df986f642.tar.gz
cpython-9e6b47002a563473ec966ac4d353b99df986f642.tar.bz2
Patch #1581073: add a flag to textwrap that prevents the dropping of
whitespace while wrapping.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libtextwrap.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/lib/libtextwrap.tex b/Doc/lib/libtextwrap.tex
index 38f9b03..fcf339d 100644
--- a/Doc/lib/libtextwrap.tex
+++ b/Doc/lib/libtextwrap.tex
@@ -115,6 +115,13 @@ replaced by a single space, which is \emph{not} the same as tab
expansion.}
\end{memberdesc}
+\begin{memberdesc}{drop_whitespace}
+(default: \code{True}) If true, whitespace that, after wrapping, happens
+to end up at the beginning or end of a line is dropped (leading whitespace
+in the first line is always preserved, though).
+\versionadded[Whitespace was always dropped in earlier versions]{2.6}
+\end{memberdesc}
+
\begin{memberdesc}{initial_indent}
(default: \code{''}) String that will be prepended to the first line
of wrapped output. Counts towards the length of the first line.