/opt/imunify360/venv/lib/python3.11/site-packages/docutils/__pycache__
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/docutils/__pycache__/examples.cpython-311.pyc (4175B)
§
U¶1mè{õeã óB — d Z ddlmZmZ d
d„Z dd„Z dd „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.
é )ÚcoreÚioNÚunicodeTé c óD — |||dœ}t j | ||d|¬¦ « }|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 "
").
)Úinput_encodingÚdoctitle_xformÚinitial_header_levelÚhtml)ÚsourceÚsource_pathÚdestination_pathÚwriter_nameÚsettings_overrides)r Ú
publish_parts)Úinput_stringr
r r Údoctitler
Ú overridesÚpartss úq/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/docutils/examples.pyÚ
html_partsr sF € ð4 $2Ø#+Ø)=ð?ð ?€Iõ
ÔØ¨Ø)بyð
:ñ
:ô
:€Eð €Ló c óv — t | |||||¬¦ « }|d }|dk r| |¦ « }|S )aE
Given an input string, returns an HTML fragment as a string.
The return value is the contents of the 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" .
)r r
r r r r
Ú html_bodyr )r Úencode) r r
r r Úoutput_encodingr r
r Úfragments r r r 5 sU € õ
Ø!¨{Ø)Ø%°Ø1ð
3ñ
3ô
3€Eð
�[Ô!€Hؘ)Ò#Ð#Ø—?’? ?Ñ3Ô3ˆØ€Or c ó — |r| ¦ « }ni }||d<