HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/click/__pycache__/_textwrap.cpython-310.pyc
o

�+caI�@s2ddlZddlZddlmZGdd�dej�ZdS)�N)�contextmanagerc
@sdeZdZdejedejedededdf
dd�Zed	edej	dfd
d��Z
dedefd
d�ZdS)�TextWrapper�reversed_chunks�cur_line�cur_len�width�returnNc	Csdt||d�}|jr%|d}|d|�}||d�}|�|�||d<dS|s0|�|���dSdS)N����)�max�break_long_words�append�pop)	�selfrrrr�
space_left�last�cut�res�r�1/usr/lib/python3/dist-packages/click/_textwrap.py�_handle_long_words
�zTextWrapper._handle_long_word�indentccsR�|j}|j}|j|7_|j|7_zdVW||_||_dS||_||_w)N)�initial_indent�subsequent_indent)rr�old_initial_indent�old_subsequent_indentrrr�extra_indents�
�zTextWrapper.extra_indent�textcCsJg}t|���D]\}}|j}|dkr|j}|�|�|���qd�|�S)Nr�
)�	enumerate�
splitlinesrrr
�join)rr�rv�idx�linerrrr�indent_only&s
zTextWrapper.indent_only)�__name__�
__module__�__qualname__�t�List�str�intrr�Iteratorrr%rrrrrs����
�r)�textwrap�typingr)�
contextlibrrrrrr�<module>s