diff options
author | 2010-10-15 20:45:03 +0000 | |
---|---|---|
committer | 2010-10-15 20:45:03 +0000 | |
commit | 69615b3529bd47f73a5c431c091fb8baf554096c (patch) | |
tree | 2e5629aa7c957885af7c81d74231a8431075c39f /usr.bin/mandoc/man_macro.c | |
parent | Remove redundant definition (diff) | |
download | wireguard-openbsd-69615b3529bd47f73a5c431c091fb8baf554096c.tar.xz wireguard-openbsd-69615b3529bd47f73a5c431c091fb8baf554096c.zip |
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 */ |