File: //lib/python3.6/site-packages/docutils/transforms/__pycache__/frontmatter.cpython-36.pyc
3
v2�e`L � @ st d Z dZddlZddlmZmZ ddlmZmZ G dd� de�Z G dd � d e �Z
G d
d� de �ZG dd
� d
e�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� Transformc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �
TitlePromoterzJ
Abstract base class for DocTitle and SectionSubTitle transforms.
c C s� t |tj�std��t|�o*t |d tj� s2t�| j|�\}}|dkrLdS |j|dd� |dd� |d|� |dd� |dd�<