diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-07-04 15:38:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-07-04 15:38:26 +0000 |
commit | 38564fb72f1972ec44f0dd16e2ae4802adc9d3c9 (patch) | |
tree | 8fcb369483727b656742f258c9875c50e59f215b /mandoc.1 | |
parent | 297de1c8ac72f2de64a49c98141c097cad06e90f (diff) | |
download | mandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.tar.gz mandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.tar.zst mandoc-38564fb72f1972ec44f0dd16e2ae4802adc9d3c9.zip |
The mandoc(1) manual already mentions that -T man output mode
neither supports tbl(7) nor eqn(7) input.
If an input file contains such code anyway, tell the user
rather than failing an assert(3)ion.
Fixing a crash reported by Bjarni Ingi Gislason <bjarniig at rhi dot hi dot is>
in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901636 which the
Debian maintainer of mandoc, Michael at Stapelberg dot ch, forwarded to me.
Diffstat (limited to 'mandoc.1')
-rw-r--r-- | mandoc.1 | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 28 2021 $ +.Dd $Mdocdate: July 4 2021 $ .Dt MANDOC 1 .Os .Sh NAME @@ -2314,6 +2314,26 @@ or macro or of an undefined macro. The macro is ignored, and its arguments are handled as if they were a text line. +.It Sy "skipping tbl in -Tman mode" +.Pq mdoc , tbl +An input file contains the +.Ic \&TS +macro. +This message is only generated in +.Fl T Cm man +output mode, where +.Xr tbl 7 +input is not supported. +.It Sy "skipping eqn in -Tman mode" +.Pq mdoc , eqn +An input file contains the +.Ic \&EQ +macro. +This message is only generated in +.Fl T Cm man +output mode, where +.Xr eqn 7 +input is not supported. .El .Ss Bad command line arguments .Bl -ohang |