summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-09-06 22:39:36 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-09-06 22:39:36 +0000
commitc525d64ed5cfcdc59ac04ab0411b657f2e5e157a (patch)
tree2c84b84c3de80a4af01f1d2dbe041ccca7006567 /mdoc_argv.c
parent34ba2d164c86804e434dc4199679b9611f18710a (diff)
downloadmandoc-c525d64ed5cfcdc59ac04ab0411b657f2e5e157a.tar.gz
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 'mdoc_argv.c')
0 files changed, 0 insertions, 0 deletions