| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/docutils/transforms/__pycache__/ |
Upload File : |
a
OԼa�N � @ s� d Z dZddlZddlZddlmZmZ ddlmZm Z ej
dkrFeZG dd� de �Z
G d d
� d
e
�ZG dd� de
�ZG d
d� de �ZdS )a4
Transforms related to the front matter of a document or a section
(information found before the main text):
- `DocTitle`: Used to transform a lone top level section's title to
the document title, promote a remaining lone top-level section's
title to the document subtitle, and determine the document's title
metadata (document['title']) based on the document title and/or the
"title" setting.
- `SectionSubTitle`: Used to transform a lone subsection into a
subtitle.
- `DocInfo`: Used to transform a bibliographic field list into docinfo
elements.
ZreStructuredText� N)�nodes�utils)�TransformError� Transform)� r c @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �
TitlePromoterzJ
Abstract base class for DocTitle and SectionSubTitle transforms.
c C s� t |tj�std��t|�r0t |d tj�r0J �| �|�\}}|du rJdS |j|ddd� |dd� |d|� |dd� |dd�<