diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-22 13:16:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-22 13:16:02 +0000 |
commit | 2431b218394ba14677aba28b89b056f9f3c6d87f (patch) | |
tree | a78f573cfa6f6cabc59bfc4a56aff08713d2bcb0 /roff.c | |
parent | 160bce241fc63681edac21b1860a8cbe26bd5b9f (diff) | |
download | mandoc-2431b218394ba14677aba28b89b056f9f3c6d87f.tar.gz |
When finding the roff .it request (line trap),
make it clear that you cannot use mandoc to format that page (yet).
Triggered by a report from brad@, ok kristaps@.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -51,6 +51,7 @@ enum rofft { ROFF_ie, ROFF_if, ROFF_ig, + ROFF_it, ROFF_ne, ROFF_nh, ROFF_nr, @@ -172,6 +173,7 @@ static struct roffmac roffs[ROFF_MAX] = { { "ie", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, { "if", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, { "ig", roff_block, roff_block_text, roff_block_sub, 0, NULL }, + { "it", roff_line_ignore, NULL, NULL, 0, NULL }, { "ne", roff_line_ignore, NULL, NULL, 0, NULL }, { "nh", roff_line_ignore, NULL, NULL, 0, NULL }, { "nr", roff_nr, NULL, NULL, 0, NULL }, @@ -935,6 +937,9 @@ static enum rofferr roff_line_ignore(ROFF_ARGS) { + if (ROFF_it == tok) + (*r->msg)(MANDOCERR_REQUEST, r->data, ln, ppos, "it"); + return(ROFF_IGN); } |