=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.122 retrieving revision 1.123 diff -u -p -r1.122 -r1.123 --- mandoc/roff.c 2011/01/16 04:00:34 1.122 +++ mandoc/roff.c 2011/01/22 13:16:02 1.123 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.122 2011/01/16 04:00:34 schwarze Exp $ */ +/* $Id: roff.c,v 1.123 2011/01/22 13:16:02 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -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 }, @@ -934,6 +936,9 @@ roff_evalcond(const char *v, int *pos) static enum rofferr roff_line_ignore(ROFF_ARGS) { + + if (ROFF_it == tok) + (*r->msg)(MANDOCERR_REQUEST, r->data, ln, ppos, "it"); return(ROFF_IGN); }