diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-06 22:39:36 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-06 22:39:36 +0000 |
commit | c525d64ed5cfcdc59ac04ab0411b657f2e5e157a (patch) | |
tree | 2c84b84c3de80a4af01f1d2dbe041ccca7006567 /main.h | |
parent | 34ba2d164c86804e434dc4199679b9611f18710a (diff) | |
download | mandoc-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 'main.h')
0 files changed, 0 insertions, 0 deletions