관리-도구
편집 파일: groff.cpython-311.pyc
� �܋f� � �P � d Z ddlZddlmZ ddlmZmZ dgZ G d� de� � ZdS )z� pygments.formatters.groff ~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for groff output. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� Formatter)�get_bool_opt�get_int_opt�GroffFormatterc �L � e Zd ZdZdZg d�Zg Zd� Zd� Zd� Z d� Z d� Zd � Zd � 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``). �groff)r �troff�roffc � � t j | fi |�� 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�optionss �v/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pip/_vendor/pygments/formatters/groff.pyr zGroffFormatter.__init__- s� � ���4�+�+�7�+�+�+�&�w��d�C�C���#�G�Y��>�>����������3�3�� ��� ������������ c �6 � | j rdnd}| j rdnd}| j rdnd}| j D ]o\ }}dx}}|d r|d |d z z }d |z }|d r ||z }||z }|d r ||z }||z }|d r|d|d z z }d|z }||f| j |<