diff options
author | 2014-06-20 23:02:31 +0000 | |
---|---|---|
committer | 2014-06-20 23:02:31 +0000 | |
commit | b4c01f5c60dab8debad192bef6f9db1c465255b9 (patch) | |
tree | e78d628565794d197118e581bb2357acd6ba5f4f /compat_fgetln.c | |
parent | b3b89a43d7165af5fd4fe84f88cdeef6cb5ee1aa (diff) | |
download | mandoc-b4c01f5c60dab8debad192bef6f9db1c465255b9.tar.gz mandoc-b4c01f5c60dab8debad192bef6f9db1c465255b9.tar.zst mandoc-b4c01f5c60dab8debad192bef6f9db1c465255b9.zip |
As suggested by jmc@, only include line and column numbers into messages
when they are meaningful, to avoid confusing stuff like this:
$ mandoc /dev/null
mandoc: /dev/null:0:1: FATAL: not a manual
Instead, just say:
mandoc: /dev/null: FATAL: not a manual
Another example this applies to is documents having a prologue,
but lacking a body. Do not throw a FATAL error for these; instead,
issue a WARNING and show the empty document, in the man(7) case with
the same amount of blank lines as groff does. Also downgrade mdoc(7)
documents having content before the first .Sh from FATAL to WARNING.
Diffstat (limited to 'compat_fgetln.c')
0 files changed, 0 insertions, 0 deletions