Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
pip
/
_vendor
/
pygments
/
formatters
/
__pycache__
[ HOME ]
Exec
Submit
File Name : groff.cpython-38.pyc
U ʗRe� � @ sB d Z ddlZddlmZ ddlmZmZ dgZG dd� de�ZdS )z� pygments.formatters.groff ~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for groff output. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� Formatter)�get_bool_opt�get_int_opt�GroffFormatterc @ sZ e Zd ZdZdZdddgZg Zdd� Zdd� Zd d � Z dd� Z d d� Zdd� Zdd� Z dS )r a Format tokens with groff escapes to change their color and font style. .. versionadded:: 2.11 Additional options accepted: `style` The style to use, can be a string or a Style subclass (default: ``'default'``). `monospaced` If set to true, monospace font will be used (default: ``true``). `linenos` If set to true, print the line numbers (default: ``false``). `wrap` Wrap lines to the specified number of characters. Disabled if set to 0 (default: ``0``). �groffZtroffZroffc K sV t j| f|� t|dd�| _t|dd�| _d| _t|dd�| _d| _i | _ | � � d S )N� monospacedT�linenosFr �wrap)r �__init__r r r �_linenor r �_linelen�styles�_make_styles)�self�options� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/pygments/formatters/groff.pyr - s zGroffFormatter.__init__c C s� | j r dnd}| j rdnd}| j r&dnd}| jD ]�\}}d }}|d r`|d |d 7 }d | }|d rx||7 }|| }|d r�||7 }|| }|d r�|d|d 7 }d| }||f| j|<