summaryrefslogtreecommitdiff
path: root/src/click/formatting.py
diff options
context:
space:
mode:
authorGianluca Gippetto <gianluca.gippetto@gmail.com>2021-05-07 17:18:59 +0200
committerDavid Lord <davidism@gmail.com>2021-05-10 23:07:23 -0700
commitdcd991d986d43c4f12cc838c4008dfafc015c21d (patch)
tree33652cbd49c12b04b54f80b0215d1767e1220dfa /src/click/formatting.py
parent5215fc1030ed911c0c67b18e2fcad95fc173dd0e (diff)
downloadclick-dcd991d986d43c4f12cc838c4008dfafc015c21d.tar.gz
HelpFormatter.write_text uses full width
Diffstat (limited to 'src/click/formatting.py')
-rw-r--r--src/click/formatting.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/click/formatting.py b/src/click/formatting.py
index 1e59fc2..ddd2a2f 100644
--- a/src/click/formatting.py
+++ b/src/click/formatting.py
@@ -195,12 +195,11 @@ class HelpFormatter:
"""Writes re-indented text into the buffer. This rewraps and
preserves paragraphs.
"""
- text_width = max(self.width - self.current_indent, 11)
indent = " " * self.current_indent
self.write(
wrap_text(
text,
- text_width,
+ self.width,
initial_indent=indent,
subsequent_indent=indent,
preserve_paragraphs=True,