CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2019/07/19 14:25:21
Modified files: usr.bin/mandoc : main.c tag.c Log message: If no tags were generated at all, unlink(2) the empty tags file as soon the condition can be detected and do not pass it to less(1). This may happen for man(7) pages, for preformatted pages, and for very simple pages like true(1). The main benefit is that :t inside less(1) yields the clearer diagnostic message "No tags file" rather than the mildly confusing "No such tag in tags file": the latter might encourage further, futile attempts to jump to other tags. Improvement suggested by Leah Neukirchen <leah at vuxu dot org> from The Void.