Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/docutils/__pycache__/examples.cpython-37.pyc

58 lines
3.2 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>[<5B>]w<00>@s6dZddlmZmZd dd<08>Zdd d
<EFBFBD>Zdd d <0C>ZdS)a1
This module contains practical examples of Docutils client code.
Importing this module from client code is not recommended; its contents are
subject to change in future Docutils releases. Instead, it is recommended
that you copy and paste the parts you need into your own code, modifying as
necessary.
<EFBFBD>)<02>core<72>ioN<6F>unicodeT<65>cCs$|||d<01>}tj|||d|d<03>}|S)a
Given an input string, returns a dictionary of HTML document parts.
Dictionary keys are the names of parts, and values are Unicode strings;
encoding is up to the client.
Parameters:
- `input_string`: A multi-line text string; required.
- `source_path`: Path to the source file or object. Optional, but useful
for diagnostic output (system messages).
- `destination_path`: Path to the file or object which will receive the
output; optional. Used for determining relative paths (stylesheets,
source links, etc.).
- `input_encoding`: The encoding of `input_string`. If it is an encoded
8-bit string, provide the correct encoding. If it is a Unicode string,
use "unicode", the default.
- `doctitle`: Disable the promotion of a lone top-level section title to
document title (and subsequent section title to document subtitle
promotion); enabled by default.
- `initial_header_level`: The initial level for header elements (e.g. 1
for "<h1>").
)<03>input_encodingZdoctitle_xform<72>initial_header_level<65>html)<05>source<63> source_path<74>destination_path<74> writer_name<6D>settings_overrides)rZ publish_parts)<08> input_stringr
r r<00>doctitler<00> overrides<65>parts<74>r<00>7/tmp/pip-install-u_6_z2pz/docutils/docutils/examples.py<70>
html_partss
rc Cs2t||||||d<01>}|d}|dkr.|<08>|<04>}|S)aE
Given an input string, returns an HTML fragment as a string.
The return value is the contents of the <body> element.
Parameters (see `html_parts()` for the remainder):
- `output_encoding`: The desired encoding of the output. If a Unicode
string is desired, use the default value of "unicode" .
)rr
r rrr<00> html_bodyr)r<00>encode) rr
r r<00>output_encodingrrr<00>fragmentrrrr4s 
rcCsZ|r|<04><00>}ni}||d<tjtj||tjd|dddddddd|ddd<06>\}}|jj|fS)zx
Return the document tree and publisher, for exploring Docutils internals.
Parameters: see `html_parts()`.
rN<>
standaloneZrestructuredtext<78>null)Z source_classr r
Zdestination_classZ destinationr <00>readerZ reader_name<6D>parser<65> parser_name<6D>writerr <00>settingsZ settings_specr Zconfig_sectionZenable_exit_status)<08>copyrZpublish_programmaticallyrZ StringInputZ
NullOutputr<00>document)rr
r rr r<00>outputZpubrrr<00> internalsKs
r#)NNrTr)NNrrTr)NNrN)<07>__doc__Zdocutilsrrrrr#rrrr<00><module> s
!