From 38564fb72f1972ec44f0dd16e2ae4802adc9d3c9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 4 Jul 2021 15:38:26 +0000 Subject: 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 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. --- mandoc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index 3f68e9d4..8f4895b2 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,6 +1,6 @@ -/* $Id: mandoc.h,v 1.271 2021/06/27 17:57:54 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.272 2021/07/04 15:38:26 schwarze Exp $ */ /* - * Copyright (c) 2012-2020 Ingo Schwarze + * Copyright (c) 2012-2021 Ingo Schwarze * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any @@ -245,6 +245,8 @@ enum mandocerr { MANDOCERR_TBLOPT_EQN, /* eqn delim option in tbl: arg */ MANDOCERR_TBLLAYOUT_MOD, /* unsupported tbl layout modifier: m */ MANDOCERR_TBLMACRO, /* ignoring macro in table: macro */ + MANDOCERR_TBL_TMAN, /* skipping tbl in -Tman mode */ + MANDOCERR_EQN_TMAN, /* skipping eqn in -Tman mode */ MANDOCERR_BADARG, /* ===== start of bad invocations ===== */ -- cgit v1.2.3-56-ge451