File: //lib/python3.6/site-packages/awscli/bcdoc/__pycache__/textwriter.cpython-36.opt-1.pyc
3
�T_�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 ZdZejd�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�compileZ
wordsep_re� r r � /usr/lib/python3.6/textwriter.pyr s r �F � c K s t f d|i|��}|j| �S )N�width)r �wrap)�textr �kwargs�wr r r �my_wrap s r c @ s2 e Zd Zd Zddf fZi ZdZdd� Zdd� ZdS )
�
TextWriterr zNo options here.� Nc C s t jj| � d S )N)r �Writer�__init__)�selfr r r r , s zTextWriter.__init__c C s"