From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p0MDG4wx006682 for ; Sat, 22 Jan 2011 08:16:04 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p0MDG2mF018333; Sat, 22 Jan 2011 08:16:02 -0500 (EST) Date: Sat, 22 Jan 2011 08:16:02 -0500 (EST) Message-Id: <201101221316.p0MDG2mF018333@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: When finding the roff .it request (line trap), make it clear X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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@. Modified Files: -------------- mdocml: main.c roff.c Revision Data ------------- Index: roff.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v retrieving revision 1.122 retrieving revision 1.123 diff -Lroff.c -Lroff.c -u -p -r1.122 -r1.123 --- roff.c +++ roff.c @@ -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); } Index: main.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v retrieving revision 1.138 retrieving revision 1.139 diff -Lmain.c -Lmain.c -u -p -r1.138 -r1.139 --- main.c +++ main.c @@ -196,7 +196,7 @@ static const char * const mandocerrs[MAN "escaped character not allowed in a name", "skipping text before the first section header", "skipping unknown macro", - "NOT IMPLEMENTED: skipping request", + "NOT IMPLEMENTED, please use groff: skipping request", "line scope broken", "argument count wrong", "skipping end of block that is not open", -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv