* mdocml: When finding the roff .it request (line trap), make it clear
@ 2011-01-22 13:16 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2011-01-22 13:16 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-22 13:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-22 13:16 mdocml: When finding the roff .it request (line trap), make it clear schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).