summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-09-06 22:38:35 +0000
committerschwarze <schwarze@openbsd.org>2014-09-06 22:38:35 +0000
commitf0d7487d2fdc431aae2e950da52db012bc5620dd (patch)
treed55a2fb1a6b45858dafbab0dacf2e7b1b92232e0 /usr.bin/mandoc/man.c
parentReplace awk with either sed or shell equivalents. (diff)
downloadwireguard-openbsd-f0d7487d2fdc431aae2e950da52db012bc5620dd.tar.xz
wireguard-openbsd-f0d7487d2fdc431aae2e950da52db012bc5620dd.zip
Move main format autodetection from the parser dispatcher to the
roff parser where .Dd and .TH are already detected, anyway. This improves robustness because it correctly handles whitespace or an alternate control character before Dd. In the parser dispatcher, provide a fallback looking ahead in the input buffer instead of always assuming man(7). This corrects autodetection when Dd is preceded by other macros or macro-like handled requests like .ll. Triggered by reports from Daniel Levai about issues on Slackware Linux.
Diffstat (limited to 'usr.bin/mandoc/man.c')
0 files changed, 0 insertions, 0 deletions