aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-07-13 12:52:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-07-13 12:52:07 +0000
commitc347c2cd27346df69977ccd8c718bb4c1ec91a88 (patch)
tree52d97933e647f641f1461a44387af918ac68deb9 /read.c
parent9ef07094816176da1ae6b38a6391f4b1481bc5be (diff)
downloadmandoc-c347c2cd27346df69977ccd8c718bb4c1ec91a88.tar.gz
mandoc-c347c2cd27346df69977ccd8c718bb4c1ec91a88.tar.zst
mandoc-c347c2cd27346df69977ccd8c718bb4c1ec91a88.zip
Rudimentary implementation of the .it request (input line trap).
As with any low-level roff request involving subtle interactions with macro internals, this implementation is not exact, but it does handle the simplest cases. This request occurs in man(7) code generated from DocBook, for example mysql(1) and yasm_arch(7). Thanks to brad@ for reporting the issue back in January 2011.
Diffstat (limited to 'read.c')
-rw-r--r--read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read.c b/read.c
index fce90924..0ec58ecb 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.37 2013/06/02 03:52:21 schwarze Exp $ */
+/* $Id: read.c,v 1.38 2013/07/13 12:52:07 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -185,6 +185,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"macro requires line argument(s)",
"macro requires body argument(s)",
"macro requires argument(s)",
+ "request requires a numeric argument",
"missing list type",
"line argument(s) will be lost",
"body argument(s) will be lost",