Skip to main content

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)

Source distribution for reflowrst 1.1.0
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

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page