관리-도구
편집 파일: pangomarkup.cpython-38.pyc
U &?�f� � @ sJ d Z ddlmZ dgZed�ded�diZefdd �ZG d d� de�ZdS )z� pygments.formatters.pangomarkup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for Pango markup output. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � )� Formatter�PangoMarkupFormatter�&z&�<z<c C s | � |�S )z Escape & and < for Pango Markup.)� translate)�text�table� r �Y/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py�escape_special_chars s r c @ s0 e Zd ZdZdZddgZg Zdd� Zdd� Zd S ) r zk Format tokens as Pango Markup code. It can then be rendered to an SVG. .. versionadded:: 2.9 zPango MarkupZpangoZpangomarkupc K s� t j| f|� i | _| jD ]�\}}d}d}|d rL|d�|d �7 }d| }|d rd|d7 }d| }|d r||d 7 }d | }|d r�|d7 }d | }||f| j|<