File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/formatters/__pycache__/html.cpython-310.pyc
Back
o ;jՌ � @ s d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z mZmZ ddl mZmZmZ ddlZzddlZW n eyG dZY nw dgZed�d ed �ded�d ed�ded�diZefdd�Zdd� Zdd� ZdZde d ZdZdZG dd� de�ZdS )z� pygments.formatters.html ~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for HTML output. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)�StringIO)� Formatter)�Token�Text�STANDARD_TYPES)�get_bool_opt�get_int_opt�get_list_opt� HtmlFormatter�&z&�<z<�>z>�"z"�'z'c C s | � |�S )z<Escape &, <, > as well as single and double quotes for HTML.)� translate)�text�table� r �L/opt/saltstack/salt/lib/python3.10/site-packages/pygments/formatters/html.py�escape_html( s r c C s� | � d�s | � d�r| S | �� } t| �dkr=| d | d kr=| d | d kr=| d | d kr=d | d � | d � | d � �S d | � �S )NZcalc�var� r � � � � � �#)� startswith�upper�len)�colorr r r �webify- s r"