Hello all, reading through the groff(7) manpage I noticed an inconsistency in the spelling of the \n[lsn] and \n[lss] registers:
The "Writable predefined registers" section references `\n[lsn]` and `\n[lss]` whereas the paragraphs under the "Traps" section mention `\n[.lsn]` and `\n[.lss]` (notice the leading period `.`) A quick grep over the sources and groff.texi reveals several occurrences of `lsn` and `lss` yet the period-prefixed variant only appears in groff.7.man: % grep -R 'ls[sn]' src doc/groff.texi src/roff/troff/input.cpp: register_dictionary.define("lsn", new variable_reg(&leading_spaces_number)); src/roff/troff/input.cpp: register_dictionary.define("lss", new variable_reg(&leading_spaces_space)); doc/groff.texi:@DefregItemx {lsn} doc/groff.texi:@DefregListEndx {lss} doc/groff.texi:@code{lsn}, and the amount of corresponding horizontal motion in doc/groff.texi:register @code{lss}, irrespective of whether a leading space trap is % grep -Rl '\.ls[ns]' . ./man/groff.7.man My current understanding of groff's code base is virtually non-existent and I may have missed some crucial aspects and things in regards to the aforementioned inconsistency and things are as they should be. In that case I'd appreciate pointers that would help me understand why the things are the way they are. Otherwise please find attached a patch that removes the leading period `.` from the \n[lsn] and \n[lss] registers in the "Traps" section in groff.7.man. Best Alexis
diff --git a/man/groff.7.man b/man/groff.7.man index 8d8d9bbd0..c35ca0431 100644 --- a/man/groff.7.man +++ b/man/groff.7.man @@ -7265,9 +7265,9 @@ page ejection status .RB ( \[rs]n[.pe] ), and leading space count -.RB ( \[rs]n[.lsn] ) +.RB ( \[rs]n[lsn] ) with its corresponding amount of motion -.RB ( \[rs]n[.lss] ). +.RB ( \[rs]n[lss] ). . . .\" ====================================================================