From b3b622f3b00c45dde1519752f3b619f959466e41 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Mon, 6 Mar 2023 06:29:46 +0100 Subject: [PATCH] Doc. Update instructions for number list item management --- README | 7 +++++++ 1 file changed, 7 insertions(+) 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 ``` -- 2.39.2