Package: natsort Severity: minor Tags: patch Dear Maintainer,
the code example is not easily readable in https://packages.debian.org/sid/python3-natsort https://packages.debian.org/sid/python-natsort-doc https://packages.debian.org/sid/python3-natsort because those lines do not start with 2 spaces in debian/control, so the text is reflown according to https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description The attached patch adds a space in front of those lines. -- System Information: Debian Release: 8.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
--- debian/control.orig 2015-02-19 14:23:24.542312492 +0100 +++ debian/control 2015-02-19 14:25:11.617355735 +0100 @@ -28,13 +28,13 @@ Description: Natural sorting for python natsort lets you apply natural sorting to your sequences easily, for example: . - >>> from natsort import natsorted - >>> a = ['a2', 'a9', 'a1', 'a4', 'a10'] - >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']] - >>> natsorted(a) - ['a1', 'a2', 'a4', 'a9', 'a10' - >>> natsorted(data) - [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']] + >>> from natsort import natsorted + >>> a = ['a2', 'a9', 'a1', 'a4', 'a10'] + >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']] + >>> natsorted(a) + ['a1', 'a2', 'a4', 'a9', 'a10' + >>> natsorted(data) + [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']] . natsort identifies the numbers and sorts them separately from strings. . @@ -53,13 +53,13 @@ Description: Natural sorting for python (Python3) natsort lets you apply natural sorting to your sequences easily, for example: . - >>> from natsort import natsorted - >>> a = ['a2', 'a9', 'a1', 'a4', 'a10'] - >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']] - >>> natsorted(a) - ['a1', 'a2', 'a4', 'a9', 'a10' - >>> natsorted(data) - [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']] + >>> from natsort import natsorted + >>> a = ['a2', 'a9', 'a1', 'a4', 'a10'] + >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']] + >>> natsorted(a) + ['a1', 'a2', 'a4', 'a9', 'a10' + >>> natsorted(data) + [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']] . natsort identifies the numbers and sorts them separately from strings. . @@ -79,13 +79,13 @@ Description: Natural sorting for python (doc) natsort lets you apply natural sorting to your sequences easily, for example: . - >>> from natsort import natsorted - >>> a = ['a2', 'a9', 'a1', 'a4', 'a10'] - >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']] - >>> natsorted(a) - ['a1', 'a2', 'a4', 'a9', 'a10' - >>> natsorted(data) - [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']] + >>> from natsort import natsorted + >>> a = ['a2', 'a9', 'a1', 'a4', 'a10'] + >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']] + >>> natsorted(a) + ['a1', 'a2', 'a4', 'a9', 'a10' + >>> natsorted(data) + [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']] . natsort identifies the numbers and sorts them separately from strings. .