Skip to content
Myr

document max wrapping width

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Philip Couling · committed by David Lord · parent 5bdd954 · Browse files · 1 file+10 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−2 removed

  • other:+10 added−2 removed

1 file+10 added−2 removed

modified:docs/documentation.rst+10 added-2 removed
83 unmodified lines
84Preventing Rewrapping85---------------------8687The default behavior of Click is to rewrap text based on the width of the88terminal. In some circumstances, this can become a problem. The main issue89is when showing code examples, where newlines are significant.88terminal, to a maximum 80 characters. In some circumstances, this can become89a problem. The main issue is when showing code examples, where newlines are90significant.9192Rewrapping can be disabled on a per-paragraph basis by adding a line with93solely the ``\b`` escape marker in it. This line will be removed from the94help text and rewrapping will be disabled.
25 unmodified lines
120.. click:run::121122 invoke(cli, args=['--help'])123124To change the maximum width, pass ``max_content_width`` when calling the command.125126.. code-block:: python127128 cli(max_content_width=120)129130131.. _doc-meta-variables:132133Truncating Help Texts134---------------------
115 unmodified lines