File: //usr/lib/python3/dist-packages/awscli/bcdoc/__pycache__/textwriter.cpython-310.pyc
o
.&�a�P � @ sz d Z ddlZddlZddlZddlmZmZ G dd� dej�ZdZdZ efdd �Z
G d
d� dej�ZG dd
� d
ej
�ZdS )z�
Custom docutils writer for plain text.
Based heavily on the Sphinx text writer. See copyright below.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�nodes�writersc @ s e Zd ZdZe�d�ZdS )�TextWrapperz;Custom subclass that uses a different word separator regex.zf(\s+|(?<=\s)(?::[a-z-]+:)?`\S+|[^\s\w]*\w+[a-zA-Z]-(?=\w+[a-zA-Z])|(?<=[\w\!\"\'\&\.\,\?])-{2,}(?=\w))N)�__name__�
__module__�__qualname__�__doc__�re�compile�
wordsep_re� r r �9/usr/lib/python3/dist-packages/awscli/bcdoc/textwriter.pyr s
�r �F � c K s t dd|i|��}|�| �S )N�widthr )r �wrap)�textr �kwargs�wr r r
�my_wrap s
r c @ s, e Zd ZdZdZi ZdZdd� Zdd� ZdS )�
TextWriter)r )zNo options here.� r Nc C s t j�| � d S �N)r �Writer�__init__��selfr r r
r , � zTextWriter.__init__c C s"