summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-16 00:54:04 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-16 00:54:04 +0000
commit08303d07ede570701a32bd51204b1689f2544119 (patch)
tree5eca5ae28df12494557e0593c922083fde503180 /usr.bin/mandoc/man_term.c
parent9be747ee1b1eac217127619ca44caf4eb6f851ab (diff)
In theory, Kristaps never intended to write a roff parser,
but in practice, most real legacy man(7)uals are using so much low level roff that we can't really get away without at least partially handling some roff instructions. As doing this in man(7) only has become messy and as even some mdoc(7) pages need it, start a minimal partial roff preprocessor. As a first step, move handling of .am[i], .de[i] and .ig there. Do not use the roff preprocessor for new manuals! Now that we have three main parser libraries - roff, man and mdoc - each one having its own error handling is becoming messy, too. Thus, start unifying message handling in one central place, introducing a new generic function mmsg(). coded by kristaps@
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r--usr.bin/mandoc/man_term.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c
index 2a71dd781be..2e89ae9d795 100644
--- a/usr.bin/mandoc/man_term.c
+++ b/usr.bin/mandoc/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.33 2010/05/15 22:18:55 schwarze Exp $ */
+/* $Id: man_term.c,v 1.34 2010/05/16 00:54:03 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -138,12 +138,6 @@ static const struct termact termacts[MAN_MAX] = {
{ pre_sp, NULL, MAN_NOTEXT }, /* Sp */
{ pre_nf, NULL, 0 }, /* Vb */
{ pre_fi, NULL, 0 }, /* Ve */
- { pre_ign, NULL, MAN_NOTEXT }, /* de */
- { pre_ign, NULL, MAN_NOTEXT }, /* dei */
- { pre_ign, NULL, MAN_NOTEXT }, /* am */
- { pre_ign, NULL, MAN_NOTEXT }, /* ami */
- { pre_ign, NULL, MAN_NOTEXT }, /* ig */
- { NULL, NULL, 0 }, /* . */
{ NULL, NULL, 0 }, /* if */
{ NULL, NULL, 0 }, /* ie */
{ NULL, NULL, 0 }, /* el */