HEX
Server: nginx/1.24.0
System: Linux ip-10-50-20-85 6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 x86_64
User: usefuloffices.org (1001)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //usr/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