← Back
Editing: utils.cpython-311.pyc
� �Ïc� � � � d Z ddlmZmZ ddlmZ ddlmZmZm Z m Z g d�Zdedefd �Z d e defd�Zd e defd�Zd e defd �Zd e dee fd�ZdS )z� Utilities for manipulating formatted text. When ``to_formatted_text`` has been called, we get a list of ``(style, text)`` tuples. This file contains functions for manipulating such a list. � )�Iterable�cast�� get_cwidth� )�AnyFormattedText�OneStyleAndTextTuple�StyleAndTextTuples�to_formatted_text)� to_plain_text�fragment_list_len�fragment_list_width�fragment_list_to_text�split_lines�value�returnc �: � t t | � � � � S )z? Turn any kind of formatted text back into plain text. )r r )r s �E/usr/lib/python3/dist-packages/prompt_toolkit/formatted_text/utils.pyr r s � � !�!2�5�!9�!9�:�:�:� � fragmentsc �>