From: Gustav Eek Date: Mon, 6 Mar 2023 05:29:46 +0000 (+0100) Subject: Doc. Update instructions for number list item management X-Git-Tag: v.0.5~1 X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=b3b622f3b00c45dde1519752f3b619f959466e41;p=ranknauto.git Doc. Update instructions for number list item management --- diff --git a/README b/README index 56e1b60..4d6cc95 100644 --- a/README +++ b/README @@ -47,11 +47,18 @@ Bullet lists are respected, so bullet that are fed will remain in the output. Already ranked lists can be inserted; the previous ranking is ignored. Empty lines are ignored. +The same holds for numbered item lists. The numbering is regenerated, +starting from 1. The list pattern is however preserved at best effort, +the widest input number is used for pattern definition, and output +is adopted for right alignment. + Example: ``` echo -ne "\n * 48 % Första post\n * 9 % Och fjärde\n * 16 % Tredje plats\n * 27 % Andra\n" \ | ranknauto +echo -ne "\n 3) 48 % Första post\n 4) 9 % Och fjärde\n 5) 16 % Tredje plats\n 6) 27 % Andra\n" \ + | ranknauto ```