Installation
>>> sudo pip install reflowrst
Usage
Example:
>>> from reflowrst import reflow >>> text = 'Here is a paragraph that is far too long and will need to wrap.' >>> print(reflow(text, 47)) Here is a paragraph that is far too long and will need to wrap.
You can also get the longest possible form of the rst text by using 0 for the space. For example:
>>> paragraph = '''Here is a paragraph that is far too long and will need to wrap.''' >>> print(reflow(paragraph, 0)) Here is a paragraph that is far too long and will need to wrap.
Todo
☑ Titles
☑ Transitions
☑ Paragraphs
☑ Bullet Lists
☑ Enumerated Lists
☑ Definitions
☑ Fields
☑ Options
☑ Literal Blocks
☐ Quoted Literal Blocks
☑ Line Blocks
☑ Block Quotes
☐ Doctest Blocks
☑ Grid Tables
☑ Simple Tables
☑ Footnotes
☑ Citations
☑ Directives
Release files for reflowrst 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reflowrst-1.1.0.tar.gz | 46.2 kB | Details |
Release files / reflowrst-1.1.0.tar.gz
| Download URL | reflowrst-1.1.0.tar.gz |
|---|---|
| Size | 46.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ab397447d53ec86f6086ad55524c3bdc42c55151c45a6f364bfe38763dc366b
|
|
BLAKE2b-256 checksum How to use checksums |
e9ced2c7adaeb3e8b05226bb11911776974060bf9c29863a8909ff6f7e42dbf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |