관리-도구
편집 파일: _wrap.cpython-312.pyc
� G��e0 � � � d dl Z d dlmZmZmZ ddlmZ ddlmZm Z e j d� Zdedeee e ef fd �Zdded e dedee fd�Zed k( r2ddlmZ ed�� Zej) d� e e ddd�� � yy)� N)�Iterable�List�Tuple� )� loop_last)�cell_len� chop_cellsz \s*\S+\s*�text�returnc # �� K � d}t j | |� }|�E|j � \ }}|j d� }|||f�� t j | |� }|��Dy y �w)Nr )�re_word�match�span�group)r �position� word_match�start�end�words ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/rich/_wrap.py�wordsr sf � �� ��H����t�X�.�J� � ��_�_�&� ��s�����"���S�$����]�]�4��-� � � �s �AA#�!A#�width�foldc � � g }|j }d}t }t | � D ]� \ }}} || j � � } || z |kD rv| |kD rZ|rEt | |d�� }t |� D ]( \ }} |r ||� |r || � }�|t | � z }�* �q|r ||� || � }��|s��|s�� ||� || � }��| || � z }�� |S )Nr )�max_sizer )�appendr r �rstripr r �len)r r r �dividesr � line_position� _cell_lenr �_endr �word_length� chopped_words�last�lines r �divide_liner'