File: //usr/lib/python3/dist-packages/sphinx/writers/__pycache__/text.cpython-310.pyc
o
�$�a�� �
@ sN d Z ddlZddlZddlZddlZddlmZmZ ddlm Z m
Z
mZmZm
Z
mZmZmZmZmZmZ ddlmZmZ ddlmZmZmZ ddlmZ ddlmZ dd lm Z m!Z! dd
l"m#Z# e rhddl$m%Z% G dd
� d
�Z&G dd� d�Z'G dd� dej(�Z(dZ)dZ*e)fde+de,de
dee+ fdd�Z-G dd� dej.�Z/G dd� de#�Z0dS )z�
sphinx.writers.text
~~~~~~~~~~~~~~~~~~~
Custom docutils writer for plain text.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�chain�groupby)�
TYPE_CHECKING�Any�Dict� Generator�Iterable�List�Optional�Set�Tuple�Union�cast)�nodes�writers)�Element�Node�Text��column_width)�addnodes)�_�admonitionlabels)�SphinxTranslator)�TextBuilderc @ sZ e Zd ZdZddedededdfd d
�Zdefdd�Zdefd
d�Zdeddfdd�Z dS )�CellzVRepresents a cell in a table.
It can span multiple columns or multiple lines.
� � �text�rowspan�colspan�returnNc C s( || _ g | _|| _|| _d | _d | _d S �N)r �wrappedr r �col�row)�selfr r r � r'