diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-10-15 20:45:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-10-15 20:45:04 +0000 |
commit | aee39240bb5c1864b2c71e6ea552b46d90463fcf (patch) | |
tree | 2c36f38eec63f2abf5a8e02164d2d57f2ee073e9 /usr.bin/mandoc/man_macro.c | |
parent | 4dd735d2ad0e1362c6c908b076491a2db8f0b4d4 (diff) |
Minimal glue to integrate tbl into the mandoc man(7) parser and formatter.
The output dosn't look nice yet, escape handling is still missing,
but will follow soon.
"move forward aggressively :-)" deraadt@
Diffstat (limited to 'usr.bin/mandoc/man_macro.c')
-rw-r--r-- | usr.bin/mandoc/man_macro.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c index 7e01af81161..70c0123cfed 100644 --- a/usr.bin/mandoc/man_macro.c +++ b/usr.bin/mandoc/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.20 2010/07/25 18:05:54 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.21 2010/10/15 20:45:03 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -80,6 +80,8 @@ const struct man_macro __man_macros[MAN_MAX] = { { in_line_eoln, 0 }, /* Ve */ { in_line_eoln, 0 }, /* AT */ { in_line_eoln, 0 }, /* in */ + { blk_exp, MAN_EXPLICIT }, /* TS */ + { blk_close, 0 }, /* TE */ }; const struct man_macro * const man_macros = __man_macros; @@ -265,6 +267,9 @@ blk_close(MACRO_PROT_ARGS) case (MAN_RE): ntok = MAN_RS; break; + case (MAN_TE): + ntok = MAN_TS; + break; default: abort(); /* NOTREACHED */ |