Hi! Issue 8 Draft 2.1, XCU, nl, OPTIONS: 100997 −b type Specify which logical page body lines shall be numbered. Recognized types and 100998 their meaning are: 100999 a Number all lines. 101000 t Number only non-empty lines. 101001 n No line numbering. 101002 pstring Number only lines that contain the basic regular expression specified in 101003 string. 101004 The default type for logical page body shall be t (text lines numbered).
101015 −l num Specify the number of blank lines to be considered as one. For example, −l 2 results 101016 in only the second adjacent blank line being numbered (if the appropriate −h a, 101017 −b a, or −f a option is set). The default shall be 1. illumos, NetBSD, coreutils, and SysV all take -l to mean "empty line", not "blank line". I'm assuming this is from the original wording which pre-dates the formalisation of empty line/blank line and used "blank" for "empty". To that end, 101015,101017s/blank/empty/g. illumos, coreutils, and SysV, additionally entirely discard heading lines from consideration here; i.e. empty lines are counted across headings: $ printf '%s\n' '' '\:' '' | nl -ba -fa -l2 | cat -A $ <- empty line 1 $ <- heading 1^I$ <- empty line 2 (and the same for \:\: and \:\:\: so long as both the source and target have -[hbf]a set). To that end, I think before "The default" insert: For the purposes of merging empty lines, lines signaling the start of logical page sections shall be ignored if all traversed sections have the \fBa\fP \fItype\fP set. Best, наб
signature.asc
Description: PGP signature