From 43df058b91e94c096b642291737daea1d2868cdb Mon Sep 17 00:00:00 2001 From: KOBAYASHI Takashi Date: Sun, 1 May 2016 13:47:25 +0100 Subject: nl: reset numbering for each section * NEWS: Mention the bug fix. * src/nl.c (proc_body, proc_footer): Reset numbering here too. * doc/coreutils.texi (nl invocation): Adjust for behavior change. * tests/misc/nl.sh: Add a test case. --- doc/coreutils.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/coreutils.texi') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 563020148..6a671bb8e 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -1741,10 +1741,10 @@ nl [@var{option}]@dots{} [@var{file}]@dots{} @end example @cindex logical pages, numbering on -@command{nl} decomposes its input into (logical) pages; by default, the -line number is reset to 1 at the top of each logical page. @command{nl} -treats all of the input files as a single document; it does not reset -line numbers or logical pages between files. +@command{nl} decomposes its input into (logical) page sections; +by default, the line number is reset to 1 at each logical page section. +@command{nl} treats all of the input files as a single document; +it does not reset line numbers or logical pages between files. @cindex headers, numbering @cindex body, numbering -- cgit v1.2.3-54-g00ecf