summaryrefslogtreecommitdiff
path: root/LICENSES
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-11-28 00:33:16 -0600
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-11-28 00:33:16 -0600
commit51f12c7f61bebe78730e561ef4786fdc32b4b687 (patch)
tree8a8b928feffbf7f0cdb05ff9359c7dbb8bd6676a /LICENSES
parent45515a052d178681891fa5cfc172b7ac3cf3dd6e (diff)
downloadgroff-git-51f12c7f61bebe78730e561ef4786fdc32b4b687.tar.gz
[troff]: Implement new `.nn` register
...to report the remaining count of lines to have their numbering suppressed. * src/roff/troff/env.h (class environment): Declare new member function `get_no_number_count()`. * src/roff/troff/env.cpp (get_no_number_count): Define new member function, returning value of member variable `no_number_count`. (init_env_requests): Define new ".nn" register and attach it to `get_no_number_count()`. * doc/groff.texi (Miscellaneous): Document it. Include example of use to determine whether current output line will be numbered. Also clarify meaning of register; `.nn` is not decremented except when output line numbering is enabled. * man/groff.7.man (Read-only registers): Document it. * src/roff/groff/tests/dot-nn_register_works.sh: Test it. * src/roff/groff/groff.am (groff_TESTS): Run test. * NEWS: Add item. See <https://lists.gnu.org/archive/html/groff/2022-11/msg00153.html>.
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions