diff options
| author | Seth M Morton <seth.m.morton@gmail.com> | 2015-05-17 19:40:23 -0700 |
|---|---|---|
| committer | Seth M Morton <seth.m.morton@gmail.com> | 2015-05-17 19:40:23 -0700 |
| commit | 4de3b02082e64dcdd61703e1f47b4c6fc8ff0038 (patch) | |
| tree | 97355eb9d53a25999f74a6b1ed17c2ca46777086 | |
| parent | 7df020b5ddec957c86cdae3d6adede7a4dbb93a6 (diff) | |
| download | natsort-4de3b02082e64dcdd61703e1f47b4c6fc8ff0038.tar.gz | |
Fixed documentation formatting.
| -rw-r--r-- | README.rst | 2 | ||||
| -rw-r--r-- | docs/source/intro.rst | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -83,7 +83,7 @@ BSD-based system (like Mac OS X). You can sort signed floats (i.e. real numbers) using the ``realsorted``; this is useful in scientific data analysis. This was the default behavior of ``natsorted`` -for ``natsort`` version < 4.0.0. :: +for ``natsort`` version < 4.0.0: .. code-block:: python diff --git a/docs/source/intro.rst b/docs/source/intro.rst index d454094..eeed041 100644 --- a/docs/source/intro.rst +++ b/docs/source/intro.rst @@ -63,7 +63,9 @@ a useful hack. You can also perform locale-aware sorting (or "human sorting"), where the non-numeric characters are ordered based on their meaning, not on their -ordinal value; this can be achieved with the :func:`~humansorted` function:: +ordinal value; this can be achieved with the :func:`~humansorted` function: + +.. code-block:: python >>> a = ['Apple', 'Banana', 'apple', 'banana'] >>> natsorted(a) @@ -82,7 +84,7 @@ below before using the :func:`~humansorted` function. You can sort signed floats (i.e. real numbers) using the :func:`~realsorted`; this is useful in scientific data analysis. This was the default behavior of -:func:`~natsorted` for :mod:`natsort` version < 4.0.0. :: +:func:`~natsorted` for :mod:`natsort` version < 4.0.0: .. code-block:: python |
