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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflowrst-1.1.0.tar.gz (46.2 kB view details)

Uploaded Source

File details

Details for the file reflowrst-1.1.0.tar.gz.

File metadata

  • Download URL: reflowrst-1.1.0.tar.gz
  • Upload date:
  • Size: 46.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for reflowrst-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4ab397447d53ec86f6086ad55524c3bdc42c55151c45a6f364bfe38763dc366b
MD5 bc661074966a8baef922412457c618b8
BLAKE2b-256 e9ced2c7adaeb3e8b05226bb11911776974060bf9c29863a8909ff6f7e42dbf6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

1.0.9

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page