관리-도구
편집 파일: __init__.cpython-311.pyc
� P�DgQ � �� � d Z dZddlmZ ddlZddlmZmZ ddlmZ G d� de� � Z G d � d e � � Z i dd�d d�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d!�d#d$d%��Zd&� ZdS )'z0 This package contains Docutils Writer modules. �reStructuredText� )� import_moduleN)� languages� Component)� universalc �Z � � e Zd ZdZdZdZ� fd�ZdZ dZ dZ dZ d� Zd� Zd� Z d � Z� xZS ) �Writera Abstract base class for docutils Writers. Each writer module or package must export a subclass also called 'Writer'. Each writer must support all standard node types listed in `docutils.nodes.node_class_names`. The `write()` method is the main entry point. �writer�writersc � �� t � � � � � t j t j t j gz S �N)�super�get_transformsr �Messages�FilterMessages�StripClassesAndElements)�self� __class__s ��y/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/docutils/writers/__init__.pyr zWriter.get_transforms! s9 �� ��w�w�%�%�'�'�9�+=�+4�+C�+4�+L�+N� N� N� Nc � � i | _ d S r )�parts�r s r �__init__zWriter.__init__8 s � ��� � � r c �� � || _ t j |j j |j � � | _ || _ | � � � | j � | j � � S )a/ Process a document into its final form. Translate `document` (a Docutils document tree) into the Writer's native format, and write it out to its `destination` (a `docutils.io.Output` subclass object). Normally not overridden or extended in subclasses. )�documentr �get_language�settings� language_code�reporter�language�destination� translate�write�output)r r r"